chainFunctor

Undocumented in source. Be warned that the author may not have intended to support it.
chainFunctor
(
alias fun
)
()

Examples

int[] results;
auto fn = chainFunctor!(n => results ~= cast(int)n);
fn(1);
fn(long(2));
fn(ubyte(3));
assert(results == [1, 2, 3]);

Meta