Take

Returns the first (last) elements of a list.

Syntax

take(List, Integer)

Description

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

calc.take.calc.png