Difference between revisions of "KeepIf Command"

From GeoGebra Manual
Jump to: navigation, search
(create official page from pdf)
 
(create official page from pdf)
Line 1: Line 1:
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 +
{{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: <tt>KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}]</tt> returns the new list ''{1, 2, 1}''.
 
: Example: <tt>KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}]</tt> returns the new list ''{1, 2, 1}''.

Revision as of 10:31, 3 November 2010

© 2024 International GeoGebra Institute