InteropFSharp Module
F#-friendly API using curried functions and idiomatic constructs.
Functions and values
Function or value | Description |
Full Usage:
CreateTree elements getRank
Parameters:
'a seq
-
The sequence of elements to convert.
getRank : 'a -> int
-
A function that returns the rank (nesting level) of each element.
Returns: InteropTree<'a>
An InteropTree representing the reconstructed hierarchy.
|
|
Full Usage:
breadthFirstTraversal tree onEnter onExit
Parameters:
InteropTree<'a>
-
The InteropTree to traverse.
onEnter : 'a -> unit
-
Function to call when entering a node with a value.
onExit : 'a -> unit
-
Function to call when exiting a node with a value.
|
|
Full Usage:
depthFirstTraversal tree onEnter onExit
Parameters:
InteropTree<'a>
-
The InteropTree to traverse.
onEnter : 'a -> unit
-
Function to call when entering a node with a value.
onExit : 'a -> unit
-
Function to call when exiting a node with a value.
|
|
Full Usage:
traverseWithOutlineIndex tree action
Parameters:
InteropTree<'a>
-
The InteropTree to traverse.
action : 'a -> int list -> unit
-
Function to call with each node's value and outline index (e.g., [1; 2; 3]).
|
|