list

Construct List from elements, inferring element type.

Examples

const auto v = list(1f, 2, 3);
assert(is(Unqual!(typeof(v)) == List!(float, 3)));
assert(v == [1f, 2f, 3f]);

Meta