Difference between revisions of "Take Command"
From GeoGebra Manual
m (changed CAS syntax description) |
m (change CAS View note) |
||
Line 13: | Line 13: | ||
:{{example| 1=<div><code><nowiki>Take["GeoGebra", 3, 6]</nowiki></code> yields the text ''oGeb''.</div>}} | :{{example| 1=<div><code><nowiki>Take["GeoGebra", 3, 6]</nowiki></code> yields the text ''oGeb''.</div>}} | ||
− | {{ | + | {{Note|1= |
− | In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] | + | In the [[File:Menu view cas.svg|link=|16px]] [[CAS View]] it works just for lists |
− | |||
}} | }} |
Revision as of 23:19, 8 January 2016
- 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.
Note: In the CAS View it works just for lists