unzip

unzip
(
Z
)
()

Examples

import std.algorithm : equal;
import std.range : zip;
immutable a = [1, 2, 3];
immutable b = ["a", "b", "c"];
immutable c = [0.1, 0.2, 0.3];

auto x = tuple(a, b, c);
auto z = zip(x.expand);
auto u = unzip(zip(a, b, c));
static foreach (i; 0 .. x.length)
{
    assert(u[i].equal(x[i]));
}

Meta