Skip to main content

Array.take

takerange

Group: Selections
Aliases: first, head, last, limit, sample, slice, tail, top, keep

Documentation

Creates a new Vector with only the specified range of elements from the input, removing any elements outside the range.

Arguments

  • range: The section of the this array to return. If an Index_Sub_Range, then the selection is interpreted following the rules of that type. If a Range, the selection is specified by two indices, from and to.