[][src]Module arithmetic_eval::fns

Standard functions for the interpreter.

Structs

Assert

Assertion function.

Binary

Binary function wrapper.

Compare

Comparator function on two arguments. Returns -1 if the first argument is lesser than the second, 1 if the first argument is greater, and 0 in other cases.

Filter

Filter function that evaluates the provided function on each item of the tuple and retains only elements for which the function returned true.

Fold

Reduce (aka fold) function that reduces the provided tuple to a single value.

If

if function that eagerly evaluates "if" / "else" terms.

Loop

Loop function that evaluates the provided closure one or more times.

Map

Map function that evaluates the provided function on each item of the tuple.

Merge

Function that merges two tuples.

Push

Function that appends a value onto a tuple.

Unary

Unary function wrapper.