Zip

Zips sequences of AliasPacks together into an AliasPack of AliasPacks.

Members

Aliases

Head
alias Head(alias P) = P.Head
Undocumented in source.
Tail
alias Tail(alias P) = P.Tail
Undocumented in source.
Zip
alias Zip = AliasPack!()
Undocumented in source.
Zip
alias Zip = AliasPack!(AliasPack!(staticMap!(Head, Seqs)), Zip!(staticMap!(Tail, Seqs)).Unpack)
Undocumented in source.

Manifest constants

len
enum len;
Undocumented in source.

Examples

alias a = AliasPack!(1, 2, 3);
alias b = AliasPack!(4, 5, 6);
alias c = AliasPack!(7, 8, 9);
alias d = Zip!(a, b, c);

static assert(d.length == 3);

static assert(d.Unpack[0].equals!(1, 4, 7));
static assert(d.Unpack[1].equals!(2, 5, 8));
static assert(d.Unpack[2].equals!(3, 6, 9));

See Also

Meta