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 anIndex_Sub_Range
, then the selection is interpreted following the rules of that type. If aRange
, the selection is specified by two indices, from and to.