Pluck

Extract the elements of an AliasPack at given positions.

The function takes two parameters - the first is the AliasPack to extract from, the second is an AliasPack of positions.

Members

Aliases

Pluck
alias Pluck = AliasPack!()
Undocumented in source.
Pluck
alias Pluck = AliasPack!(Pack.Unpack[Positions[0]], Pluck!(Pack, Positions[1..$]).Unpack)
Undocumented in source.

Examples

static assert(Pluck!(AliasPack!(), []).equals!());
static assert(Pluck!(AliasPack!(int, char, float), []).equals!());
static assert(Pluck!(AliasPack!(int, char, float), [0, 2]).equals!(int, float));

Meta