Alias Pluck

Extract the elements of an AliasPack at given positions.

alias Pluck(alias Pack, ulong[] Positions) = AliasPack!();

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

Example

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));