Difference between revisions of "Take Command"
From GeoGebra Manual
m (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 ) |
m (remove wrong info) |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page|version= | + | <noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|cas=true|list}} |
− | {{command|cas=true|list}} | + | ;Take( <List>, <Start Position> ) |
− | ;Take | + | :Returns a list containing the elements from ''Start Position'' to the end of the initial list. |
− | :Returns a list containing the elements from | + | :{{example| 1=<div><code><nowiki>Take({2, 4, 3, 7, 4}, 3)</nowiki></code> yields ''{3, 7, 4}''.</div>}} |
− | :{{example| 1=<div><code><nowiki>Take | + | ;Take( <Text>, <Start Position> ) |
− | + | :Returns a text containing the elements from ''Start Position'' to the end of the initial text. | |
− | ;Take | + | :{{example| 1=<div><code><nowiki>Take("GeoGebra", 3)</nowiki></code> yields the text ''oGebra''.</div>}} |
− | :Returns a text containing the elements from | + | ;Take( <List>, <Start Position>, <End Position> ) |
− | :{{example| 1=<div><code><nowiki>Take | + | :Returns a list containing the elements from ''Start Position'' to ''End Position'' of the initial list. |
− | + | :{{example| 1=<div><code><nowiki>Take({2, 4, 3, 7, 4}, 3, 4)</nowiki></code> yields ''{3, 7}''.</div>}} | |
− | ;Take | + | ;Take( <Text>, <Start Position>, <End Position> ) |
− | :Returns a list containing the elements from | + | :Returns a text containing the elements from ''Start Position'' to ''End Position'' of the initial text. |
− | :{{example| 1=<div><code><nowiki>Take | + | :{{example| 1=<div><code><nowiki>Take("GeoGebra", 3, 6)</nowiki></code> yields the text ''oGeb''.</div>}} |
− | |||
− | ;Take | ||
− | :Returns a text containing the elements from | ||
− | :{{example| 1=<div><code><nowiki>Take | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:59, 26 September 2022
- 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.