Skip to main content

Take

Returns the first (last) elements of a list.

Syntax

take(List, Integer)

Description

Given a list L and an integer n: if nn is positive, returns the first nn elements of LL; if nn is negative returns the last nn elements of LL.

calc.take.calc.png