Skip to main content

Sources

iota

T -> IEnumerable<T> where T: INumber<T>
Returns 1..N

to <dest>

T -> IEnumerable<T> where T: INumber<T>
Returns N..M

Filters

where <block (T -> bool)>

IEnumerable<T> -> IEnumerable<T>
Filters the input by the provided code block.

unique

IEnumerable<T> -> IEnumerable<T>
Filters the input by uniqueness, eliminating duplicate values.

take <amount>

IEnumerable<T> -> IEnumerable<T>
Removes N values from the input, discarding the rest.

select <quantity>

IEnumerable<T> -> IEnumerable<T>
Removes a quantity (amount or percentage) of values from the input randomly, discarding the rest.

sort

IEnumerable<T> -> IEnumerable<T>
Sorts the input from least to greatest.

sortby <block (T -> TOrd)>

IEnumerable<T> -> IEnumerable<T>
Sorts the input from least to greatest using the given ordering value.
    entities sortby { allcomps count }

sortmapby <block (T -> TOrd)>

IEnumerable<T> -> IEnumerable<T>
Sorts the input from least to greatest using the given ordering value, returning the ordering values.

sortdown

IEnumerable<T> -> IEnumerable<T>
Sorts the input from greatest to least.

sortdownby <block (T -> TOrd)>

IEnumerable<T> -> IEnumerable<T>
Sorts the input from greatest to least using the given ordering value.

sortmapdownby <block (T -> TOrd)>

IEnumerable<T> -> IEnumerable<T>
Sorts the input from greatest to least using the given ordering value, returning the ordering values.

Transforms

isempty

IEnumerable<T> -> bool
Returns true if the input is empty, otherwise false. This command can be inverted with not.

isnull

object? -> bool
Returns true if the input is null, otherwise false. This command can be inverted with not.

count

IEnumerable<T> -> int
Counts the number of values in the input.

iterate <block (T -> T)> <times>

IEnumerable<T> -> IEnumerable<T>
Repeats the given code block N times over it’s own output, effectively f(f(...N f(x)))

first

IEnumerable<T> -> T
Returns the first value in the input, or errors if there isn’t one.

Mutators

rep <amount>

T -> IEnumerable<T>
Repeats the input value N times.

bin

IEnumerable<T> -> IDictionary<T, int>
Counts the number of times each unique instance of T occurs in the input, returning a dictionary of unique instance : count.

map <block (TIn -> TOut)>

IEnumerable<TIn> -> IEnumerable<TOut>
Applies the given code block to each element of the input.

reduce <block (T -> T)>

IEnumerable<TIn> -> T
Reduces the input, effectively f(x1, f(x2, ...f(xn-1, xn)))
Last modified on June 20, 2026