Difference between revisions of "KeepIf Command"
From GeoGebra Manual
m (1 revision) |
(added v4 - example formatting) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> | + | <noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude> |
{{command|logical}} | {{command|logical}} | ||
; KeepIf[Condition, List]: Creates a new list that only contains those elements of the initial list that fulfill the condition. | ; KeepIf[Condition, List]: Creates a new list that only contains those elements of the initial list that fulfill the condition. | ||
− | : Example | + | : {{Example| <tt>KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}]</tt> returns the new list ''{1, 2, 1}''.}} |
Revision as of 18:23, 13 February 2011
- KeepIf[Condition, List]
- Creates a new list that only contains those elements of the initial list that fulfill the condition.
- Example: KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}] returns the new list {1, 2, 1}.