list

Construct List with the specified length and type from Input Range.

Examples

const auto l = list!(double, 4)(repeat(42));
assert(l == [42.0, 42.0, 42.0, 42.0]);

Meta