take

Take the first n elements of the input.

Signature

> take (n)

Parameters

  • n: the number of elements to take

Examples

Take two elements

> echo [[editions]; [2015] [2018] [2021]] | take 2

Take the first value

> echo [2 4 6 8] | take