Weed Trees
11 nodes
On this page 11
Add
FunctionGraph-friendly numeric longest-tree addition.
Add -> Cad Tree of Number
left: Cad Tree of Number
right: Cad Tree of NumberCadTree<double> Add(CadTree<double> left, CadTree<double> right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Cad Tree of Number | — | |
| right | Cad Tree of Number | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Create
FunctionCreates a tree in numeric lexicographic path order, concatenating duplicate branches in input order.
Create -> Cad Tree of T
paths: Integer Array Array
branches: T Array ArrayCadTree<T> Create(int[][] paths, T[][] branches)
Parameters
| name | type | default | description |
|---|---|---|---|
| paths | Integer Array Array | — | |
| branches | T Array Array | — |
Returns
| result | Cad Tree of T |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Flatten Numbers
FunctionGraph-friendly numeric flattening into {0}.
FlattenNumbers(tree: Cad Tree of Number) -> Cad Tree of Number
CadTree<double> FlattenNumbers(CadTree<double> tree)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of Number | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Flip Matrix
FunctionTransposes a rectangular tree: item indices become branches; ragged input is rejected instead of inventing nulls.
FlipMatrix(tree: Cad Tree of T) -> Cad Tree of T
CadTree<T> FlipMatrix(CadTree<T> tree)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of T | — |
Returns
| result | Cad Tree of T |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Flip Numbers
FunctionGraph-friendly rectangular numeric transpose.
FlipNumbers(tree: Cad Tree of Number) -> Cad Tree of Number
CadTree<double> FlipNumbers(CadTree<double> tree)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of Number | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Graft Numbers
FunctionGraph-friendly numeric graft, appending the item index to each source path.
GraftNumbers(tree: Cad Tree of Number) -> Cad Tree of Number
CadTree<double> GraftNumbers(CadTree<double> tree)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of Number | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Match
FunctionMatches two item-access trees using longest branches and longest lists. The deeper tree supplies output paths; depth ties favor the left input.
Match -> Cad Tree of TResult
left: Cad Tree of TLeft
right: Cad Tree of TRight
combine: Func<TLeft, TRight, TResult>CadTree<TResult> Match(
CadTree<TLeft> left,
CadTree<TRight> right,
Func<TLeft, TRight, TResult> combine)Parameters
| name | type | default | description |
|---|---|---|---|
| left | Cad Tree of TLeft | — | |
| right | Cad Tree of TRight | — | |
| combine | Func<TLeft, TRight, TResult> | — |
Returns
| result | Cad Tree of TResult |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Numbers
FunctionCreates a numeric tree with sorted, merged paths.
Numbers -> Cad Tree of Number
paths: Integer Array Array
branches: Number Array ArrayCadTree<double> Numbers(int[][] paths, double[][] branches)
Parameters
| name | type | default | description |
|---|---|---|---|
| paths | Integer Array Array | — | |
| branches | Number Array Array | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Simplify
FunctionRemoves common leading indices while retaining at least one index in each path.
Simplify(tree: Cad Tree of T) -> Cad Tree of T
CadTree<T> Simplify(CadTree<T> tree)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of T | — |
Returns
| result | Cad Tree of T |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Simplify Numbers
FunctionGraph-friendly removal of common path prefixes.
SimplifyNumbers(tree: Cad Tree of Number) -> Cad Tree of Number
CadTree<double> SimplifyNumbers(CadTree<double> tree)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of Number | — |
Returns
| result | Cad Tree of Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD
Trim Paths
FunctionRemoves trailing path indices and merges resulting branches. Removing the entire path maps to {0}.
TrimPaths(tree: Cad Tree of T, levels: Integer) -> Cad Tree of T
CadTree<T> TrimPaths(CadTree<T> tree, int levels = 1)
Parameters
| name | type | default | description |
|---|---|---|---|
| tree | Cad Tree of T | — | |
| levels | Integer | 1 |
Returns
| result | Cad Tree of T |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Trees
- Package
- CAD