Difference between revisions of "Take Command"

From GeoGebra Manual
Jump to: navigation, search
m
m
Line 1: Line 1:
<noinclude>{{Manual Page|version=5.0}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|list}}
{{command|cas=true|list}}
 
 
;Take[ <List>, <Start Position> ]
 
;Take[ <List>, <Start Position> ]
 
:Returns a list containing the elements from ''Start Position'' to the end of the initial list.
 
:Returns a list containing the elements from ''Start Position'' to the end of the initial list.

Revision as of 11:46, 11 August 2015


Take[ <List>, <Start Position> ]
Returns a list containing the elements from Start Position to the end of the initial list.
Example:
Take[{2, 4, 3, 7, 4}, 3] yields {3, 7, 4}.
Take[ <Text>, <Start Position> ]
Returns a text containing the elements from Start Position to the end of the initial text.
Example:
Take["GeoGebra", 3] yields the text oGebra.
Take[ <List>, <Start Position>, <End Position> ]
Returns a list containing the elements from Start Position to End Position of the initial list.
Example:
Take[{2, 4, 3, 7, 4}, 3, 4] yields {3, 7}.
Take[ <Text>, <Start Position>, <End Position> ]
Returns a text containing the elements from Start Position to End Position of the initial text.
Example:
Take["GeoGebra", 3, 6] yields the text oGeb.

CAS Syntax

Take[ <List>, <Start Position>, <End Position> ]
Returns a list containing the elements from Start Position to End Position of the initial list.
Example:
Take[{1, 2, a, 4, 5}, 2, 4] yields {2, a, 4}.
© 2024 International GeoGebra Institute