pick
tuple | vector →
pick(
...positions: integer
) → tuple | vector
Returns a tuple containing selected positions in the requested order.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
positions | integer | Variadic (one or more) | One or more zero-based tuple positions. |
Argument evaluation
positions: Evaluated once in the enclosing context.
Examples
T("John", "Smith", 42) | pick(1, 0) → T("Smith", "John")
Kind: Function
Scope: tuple
Aliases: pick