FSharpx.Collections


RoseTree Module

Functions and values

Function or value Description

RoseTree.ap x f

Full Usage: RoseTree.ap x f

Parameters:
Returns: RoseTree<'b>
x : RoseTree<'a>
f : RoseTree<('a -> 'b)>
Returns: RoseTree<'b>

RoseTree.bind f x

Full Usage: RoseTree.bind f x

Parameters:
Returns: RoseTree<'d>
f : 'c -> RoseTree<'d>
x : RoseTree<'c>
Returns: RoseTree<'d>

RoseTree.create root children

Full Usage: RoseTree.create root children

Parameters:
Returns: RoseTree<'b>
root : 'b
children : LazyList<RoseTree<'b>>
Returns: RoseTree<'b>

RoseTree.dfsPost x

Full Usage: RoseTree.dfsPost x

Parameters:
Returns: seq<'a>
x : RoseTree<'a>
Returns: seq<'a>

RoseTree.dfsPre x

Full Usage: RoseTree.dfsPre x

Parameters:
Returns: seq<'a>
x : RoseTree<'a>
Returns: seq<'a>

RoseTree.lift2 f a b

Full Usage: RoseTree.lift2 f a b

Parameters:
Returns: RoseTree<'f>
f : 'd -> 'e -> 'f
a : RoseTree<'d>
b : RoseTree<'e>
Returns: RoseTree<'f>

RoseTree.map f x

Full Usage: RoseTree.map f x

Parameters:
Returns: RoseTree<'d>
f : 'c -> 'd
x : RoseTree<'c>
Returns: RoseTree<'d>

RoseTree.mapAccum f state tree

Full Usage: RoseTree.mapAccum f state tree

Parameters:
    f : 'e -> 'f -> 'e * 'g
    state : 'e
    tree : RoseTree<'f>

Returns: 'e * RoseTree<'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.

f : 'e -> 'f -> 'e * 'g
state : 'e
tree : RoseTree<'f>
Returns: 'e * RoseTree<'g>

RoseTree.singleton x

Full Usage: RoseTree.singleton x

Parameters:
    x : 'b

Returns: RoseTree<'b>
x : 'b
Returns: RoseTree<'b>

RoseTree.unfold f seed

Full Usage: RoseTree.unfold f seed

Parameters:
Returns: RoseTree<'b>
f : 'a -> 'b * LazyList<'a>
seed : 'a
Returns: RoseTree<'b>

RoseTree.unfoldForest f

Full Usage: RoseTree.unfoldForest f

Parameters:
Returns: LazyList<'a> -> LazyList<RoseTree<'b>>
f : 'a -> 'b * LazyList<'a>
Returns: LazyList<'a> -> LazyList<RoseTree<'b>>