List.take_start
take_startcount
Group: Selections
Documentation
Creates a new list consisting of the first count
elements at the start of self
.
Arguments
count
: The number of elements to take from the start ofself
.
Examples
Obtaining the first 2 elements of a list.
import Standard.Examples
example_take_start = Examples.list.take_start 2