Take Command
From GeoGebra Manual
Revision as of 14:08, 9 July 2012 by Andrea.duringer (talk | contribs)
- Take[ <List>, <Start Position m>, <End Position n> ]
- Returns a list containing the elements from position m to n of the initial list.
- Example:
Take[{2, 4, 3, 7, 4}, 3, 4]
yields {3, 7}.
- Take[ <Text>, <Start Position m>, <End Position n>]
- Returns a text containing the elements from position m to n of the initial text.
- Example:
Take["GeoGebra", 3, 6]
yields the text oGeb.
CAS Syntax
- Take[ <List>, <Start Position m>, <End Position n>]
- Returns a list containing the elements from position m to n of the initial list.
- Example:
Take[{1, 2, a, 4, 5}, 2, 4]
yields {2, a, 4}.
Following text is about a feature that is supported only in GeoGebra 4.2.
Note: From GeoGebra 4.2, these syntaxes will work too: Take[ <List>, <Start Position m> ], Take[ <Text>, <Start Position m> ] |