unwrap

A copy of std::tie from C++. TODO: write proper documentation for this

@safe
unwrap
(
T...
)
(
out T args
)

Examples

int a;
string b;
unwrap(a, b) = tuple(3, "hi");
assert(a == 3 && b == hi);

Meta