Construct List from Input Range at compile time.
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]);
See Implementation
Construct List from Input Range at compile time.