list

Construct List from elements, specifying element type.

  1. List!(T, N) list(T[N] values)
  2. List!(T) list(T[] array)
  3. List!(U, Args.length) list(Args args)
    List!(U, Args.length)
    list
    (
    U
    Args...
    )
    (
    const auto ref Args args
    )
  4. auto list(Args args)
  5. List!(U, N) list(T range)
  6. auto list(T range)
  7. auto list()

Examples

const auto v = list!double(1, 2, 3);
assert(is(Unqual!(typeof(v)) == List!(double, 3)));
assert(v == [1.0, 2.0, 3.0]);

Meta