Weed Lists
21 nodes
On this page 21
Add
FunctionGraph-friendly numeric longest-list addition.
Add(left: Number Array, right: Number Array) -> Number Array
double[] Add(double[] left, double[] right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Number Array | — | |
| right | Number Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Cross Reference
FunctionCombines every left item with every right item, with right varying fastest.
CrossReference -> TResult Array
left: TLeft Array
right: TRight Array
combine: Func<TLeft, TRight, TResult>TResult[] CrossReference(
TLeft[] left,
TRight[] right,
Func<TLeft, TRight, TResult> combine)Parameters
| name | type | default | description |
|---|---|---|---|
| left | TLeft Array | — | |
| right | TRight Array | — | |
| combine | Func<TLeft, TRight, TResult> | — |
Returns
| result | TResult Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Cull Index
FunctionRemoves indexed items; indices optionally wrap, and duplicates remove an item only once.
CullIndex -> T Array
values: T Array
indices: Integer Array
wrap: TruthT[] CullIndex(T[] values, int[] indices, bool wrap = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| indices | Integer Array | — | |
| wrap | Truth | True |
Returns
| result | T Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Cull Numbers
FunctionGraph-friendly numeric culling by a repeating mask.
CullNumbers -> Number Array
values: Number Array
pattern: Truth Arraydouble[] CullNumbers(double[] values, bool[] pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — | |
| pattern | Truth Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Cull Pattern
FunctionRetains items where the repeating mask is true. An empty mask is rejected.
CullPattern(values: T Array, pattern: Truth Array) -> T Array
T[] CullPattern(T[] values, bool[] pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| pattern | Truth Array | — |
Returns
| result | T Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Dispatch
FunctionDispatches a list into the true and false sides of a repeating mask.
Dispatch -> (T Array, T Array)
values: T Array
pattern: Truth Array(T[], T[]) Dispatch(T[] values, bool[] pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| pattern | Truth Array | — |
Returns
| result | (T Array, T Array) |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Item
FunctionRetrieves an item with optional cyclic indexing; negative indices wrap only when wrap is enabled.
Item(values: T Array, index: Integer, wrap: Truth) -> T
T Item(T[] values, int index, bool wrap = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| index | Integer | — | |
| wrap | Truth | True |
Returns
| Result | T |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Length
FunctionCounts all items in a numeric list.
Length(values: Number Array) -> Integer
int Length(double[] values)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — |
Returns
| result | Integer |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Longest
FunctionCombines until the longer list ends, repeating the last element of the shorter list; either empty input gives an empty result.
Longest -> TResult Array
left: TLeft Array
right: TRight Array
combine: Func<TLeft, TRight, TResult>TResult[] Longest(
TLeft[] left,
TRight[] right,
Func<TLeft, TRight, TResult> combine)Parameters
| name | type | default | description |
|---|---|---|---|
| left | TLeft Array | — | |
| right | TRight Array | — | |
| combine | Func<TLeft, TRight, TResult> | — |
Returns
| result | TResult Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Merge
FunctionConcatenates lists in supplied order; branch merging is handled separately by WeedTrees.Create.
Merge(lists: T Array Array) -> T Array
T[] Merge(T[][] lists)
Parameters
| name | type | default | description |
|---|---|---|---|
| lists | T Array Array | — |
Returns
| result | T Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Multiply
FunctionGraph-friendly numeric longest-list multiplication.
Multiply -> Number Array
left: Number Array
right: Number Arraydouble[] Multiply(double[] left, double[] right)
Parameters
| name | type | default | description |
|---|---|---|---|
| left | Number Array | — | |
| right | Number Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Number Item
FunctionGraph-friendly list item lookup.
NumberItem -> Number
values: Number Array
index: Integer
wrap: Truthdouble NumberItem(double[] values, int index, bool wrap = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — | |
| index | Integer | — | |
| wrap | Truth | True |
Returns
| result | Number |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Partition
FunctionPartitions a list into consecutive blocks; the final block may be shorter.
Partition(values: T Array, size: Integer) -> T Array Array
T[][] Partition(T[] values, int size)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| size | Integer | — |
Returns
| result | T Array Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Reverse Numbers
FunctionReverses the item order.
ReverseNumbers(values: Number Array) -> Number Array
double[] ReverseNumbers(double[] values)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Shift
FunctionPositive shifts move items toward the beginning; without wrapping, shifted-off items are discarded.
Shift(values: T Array, shift: Integer, wrap: Truth) -> T Array
T[] Shift(T[] values, int shift, bool wrap = true)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| shift | Integer | — | |
| wrap | Truth | True |
Returns
| result | T Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Shift Numbers
FunctionGraph-friendly cyclic numeric shift.
ShiftNumbers -> Number Array
values: Number Array
shift: Integer
wrap: Truthdouble[] ShiftNumbers(
double[] values,
int shift,
bool wrap = true)Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — | |
| shift | Integer | — | |
| wrap | Truth | True |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Shortest
FunctionCombines corresponding elements until the shorter input ends.
Shortest -> TResult Array
left: TLeft Array
right: TRight Array
combine: Func<TLeft, TRight, TResult>TResult[] Shortest(
TLeft[] left,
TRight[] right,
Func<TLeft, TRight, TResult> combine)Parameters
| name | type | default | description |
|---|---|---|---|
| left | TLeft Array | — | |
| right | TRight Array | — | |
| combine | Func<TLeft, TRight, TResult> | — |
Returns
| result | TResult Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Sort
FunctionStable ascending sort of values by equally sized numeric keys.
Sort(keys: Number Array, values: T Array) -> T Array
T[] Sort(double[] keys, T[] values)
Parameters
| name | type | default | description |
|---|---|---|---|
| keys | Number Array | — | |
| values | T Array | — |
Returns
| result | T Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Sort Numbers
FunctionGraph-friendly ascending numeric sort.
SortNumbers(values: Number Array) -> Number Array
double[] SortNumbers(double[] values)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | Number Array | — |
Returns
| result | Number Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Split
FunctionSplits at a zero-based boundary; the boundary item belongs to the second list.
Split(values: T Array, index: Integer) -> (T Array, T Array)
(T[], T[]) Split(T[] values, int index)
Parameters
| name | type | default | description |
|---|---|---|---|
| values | T Array | — | |
| index | Integer | — |
Returns
| result | (T Array, T Array) |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD
Weave
FunctionWeaves lists by a repeating list-index pattern, skipping exhausted inputs. Every nonempty input must be represented.
Weave(lists: T Array Array, pattern: Integer Array) -> T Array
T[] Weave(T[][] lists, int[] pattern)
Parameters
| name | type | default | description |
|---|---|---|---|
| lists | T Array Array | — | |
| pattern | Integer Array | — |
Returns
| result | T Array |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Weed Lists
- Package
- CAD