InteropCSharp Type
C#-friendly API using .NET delegate types and standard collections.
Static members
Static member | Description |
Full Usage:
InteropCSharp.BreadthFirstTraversal(tree, onEnter, onExit)
Parameters:
InteropTree<'a>
-
The InteropTree to traverse.
onEnter : Action<'a>
-
Action to invoke when entering a node with a value.
onExit : Action<'a>
-
Action to invoke when exiting a node with a value.
|
|
Full Usage:
InteropCSharp.CreateTree(elements, getRank)
Parameters:
IEnumerable<'a>
-
The sequence of elements to convert.
getRank : Func<'a, int>
-
A Func delegate returning the nesting level (rank) of each element.
Returns: InteropTree<'a>
An InteropTree representing the reconstructed hierarchy.
|
|
Full Usage:
InteropCSharp.DepthFirstTraversal(tree, onEnter, onExit)
Parameters:
InteropTree<'a>
-
The InteropTree to traverse.
onEnter : Action<'a>
-
Action to invoke when entering a node with a value.
onExit : Action<'a>
-
Action to invoke when exiting a node with a value.
|
|
Full Usage:
InteropCSharp.TraverseWithOutlineIndex(tree, action)
Parameters:
InteropTree<'a>
-
The InteropTree to traverse.
action : Action<'a, IReadOnlyList<int>>
-
Action to invoke with the node value and its outline index (e.g., [1, 2, 3]).
|
|