list

Construct List from Input Range at compile time.

Examples

auto l = list!(iota(4).map!"a * a");
assert(l == [0, 1, 4, 9]);
l = list!(repeat(42).take(4));
assert(l == [42, 42, 42, 42]);

Meta