List.this

Constructs a List object from other list.

Examples

{
    List!(int) list = List!(int).build(1, 2);
    assert(list == [1, 2]);
}
{
    auto tmp = List!(int).build(1, 2);
    List!(int) list = tmp;
    assert(list == [1, 2]);
}


{
    List!(int) list = List!(int).build(1, 2);
    assert(list == [1, 2]);
}
{
    auto tmp = List!(int).build(1, 2);
    List!(int) list = tmp;
    assert(list == [1, 2]);
}

Meta