list

Equivalent of PHP's list language construct: http://php.net/manual/en/function.list.php

Works with arrays and tuples. Specify null as an argument to ignore that index (equivalent of list(x, , y) in PHP).

list
(
Args...
)
(
auto ref Args args
)

Examples

string name, value;
list(name, null, value) = "NAME=VALUE".findSplit("=");
assert(name == "NAME" && value == "VALUE");

Meta