Template destructInto

Destructs a range of elements in to the symbols that are provided

template destructInto(symbols...) ;

Contained Functions

NameDescription
destructInto

Parameters

NameDescription
symbols the variables you want to be set to the parts of a range
range the range you want destructed in to a set of variables

Since

- 0.0.8

Example

int a, b, c;
[1, 2, 3].destructInto!(a, b, c);
assert(a == 1);
assert(b == 2);
assert(c == 3);