Function List.build
Static function which return List construct from arguments args.
typeof(this) build(Args...)
(
auto ref Args args
);
typeof(this) build(Args...)
(
List . AllocatorType allocator,
auto ref Args args
);
Parameters
allocator exists only if template parameter _Allocator has state.
args values of type ElementType, input range or List.
Examples
import std .range : only;
int[2] tmp = [3, 4];
auto list = List!(int) .build(1, 2, tmp[], only(5, 6), List!(int) .build(7, 8));
assert(list == [1, 2, 3, 4, 5, 6, 7, 8]);