LambdaCapture

string-mixin-based anonymous templates. mixing this in allows the λ/Λ definitions reference symbols in the mixed-in scope

Members

Templates

Λ
template Λ(string op)

Λ is an alias

λ
template λ(string op)

λ is an enum

Examples

import std.typetuple: Map = staticMap, Cons = TypeTuple;

static assert (
    Map!(λ!q{(T) = T.sizeof},
        int, bool, long
    ) == Cons!(
        4,1,8
    )
);
static assert (is (
    Map!(Λ!q{(T) = T[]},
        int, bool, long
    ) == Cons!(
        int[], bool[], long[]
    )
));

Meta