fsprojects/FSharpx.Collections


RoseTree

Namespace: FSharpx.Collections.Experimental

Functions and values

Function or valueDescription
ap x f
Signature: x:RoseTree<'?12517> -> f:RoseTree<('?12517 -> '?12518)> -> RoseTree<'?12518>
Type parameters: '?12517, '?12518
bind f x
Signature: f:('c -> RoseTree<'d>) -> x:RoseTree<'c> -> RoseTree<'d>
Type parameters: 'c, 'd
create root children
Signature: root:'b -> children:RoseForest<'b> -> RoseTree<'b>
Type parameters: 'b
dfsPost x
Signature: x:RoseTree<'?12529> -> seq<'?12529>
Type parameters: '?12529

CompiledName: DfsPost

dfsPre x
Signature: x:RoseTree<'?12527> -> seq<'?12527>
Type parameters: '?12527

CompiledName: DfsPre

lift2 f a b
Signature: f:('d -> 'e -> 'f) -> a:RoseTree<'d> -> b:RoseTree<'e> -> RoseTree<'f>
Type parameters: 'd, 'e, 'f
map f x
Signature: f:('c -> 'd) -> x:RoseTree<'c> -> RoseTree<'d>
Type parameters: 'c, 'd
mapAccum f state tree
Signature: f:('e -> 'f -> 'e * 'g) -> state:'e -> tree:RoseTree<'f> -> 'e * RoseTree<'g>
Type parameters: 'e, 'f, 'g

Behaves like a combination of map and fold; it applies a function to each element of a tree, passing an accumulating parameter, and returning a final value of this accumulator together with the new tree.

singleton x
Signature: x:'b -> RoseTree<'b>
Type parameters: 'b
unfold f seed
Signature: f:('?12531 -> '?12532 * LazyList<'?12531>) -> seed:'?12531 -> RoseTree<'?12532>
Type parameters: '?12531, '?12532
unfoldForest f
Signature: f:('?12534 -> '?12535 * LazyList<'?12534>) -> LazyList<'?12534> -> RoseForest<'?12535>
Type parameters: '?12534, '?12535
Fork me on GitHub