tern.functional

General-purpose yet powerful functional programming oriented functions.

Members

Functions

barter
auto barter(A index, B elem)
auto barter(A elem)

Dynamically tries to barter a range based lambda.

denature
auto denature(ARGS args)

Denatures F on args to create a void function with no arguments.

plane
auto plane(A range, B elem)

Iterates over every element in range, looking for matches.

plane
auto plane(A range, B subrange)

Iterates over every element in range, looking for matches.

plane
auto plane(T range)

Iterates over every element in range, looking for matches.

planeReverse
auto planeReverse(A range, B elem)

Iterates over every element in range in reverse, looking for matches.

planeReverse
auto planeReverse(A range, B subrange)

Iterates over every element in range in reverse, looking for matches.

planeReverse
auto planeReverse(T range)

Iterates over every element in range in reverse, looking for matches.

Imports

binaryFun (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
bind (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
compose (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
curry (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
memoize (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
not (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
partial (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
pipe (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
reverseArgs (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.
unaryFun (from std.functional)
public import std.functional : curry, compose, pipe, memoize, not, partial, reverseArgs, unaryFun, binaryFun, bind;
Undocumented in source.

Templates

Instantiate
template Instantiate(alias F, ARGS...)

Tries to automagically instantiate F by argument.

juxt
template juxt(FUNCS...)

Asynchronously calls every function in FUNCS using the given arguments, and returns all of the values in a tuple.

renature
template renature(alias F, SIG...)

Renatures F to SIG on args to create a new arbitrary signature.

Meta