Take Command

From GeoGebra Manual
Revision as of 22:29, 9 March 2013 by Zbynek (talk | contribs) (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Jump to: navigation, search



Take[ <List>, <Start Position m>]
Returns a list containing the elements from position m to the end of the initial list.
Example:
Take[{2, 4, 3, 7, 4}, 3] yields {3, 7, 4}.


Take[ <Text>, <Start Position m>]
Returns a text containing the elements from position m to the end of the initial text.
Example:
Take["GeoGebra", 3] yields the text oGebra.


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}.
© 2024 International GeoGebra Institute