| This is read-only version of the old wiki, feel free to browse it for materials. If you want to share your own materials, please use GeoGebraTube instead. You are also welcome to help us enhance the new wiki. If any questions arise, please contact the webmaster. |
KeepIf Command
Syntax
KeepIf[condition C, list L]
Action
Creates a new list that only contains those elements of L that fulfill the condition C.
Notes
- The variable in the condition must be called x.
- Currently supports only conditions for numeric x.
Example
KeepIf[x<3, {1, 2, 3, 4, 1, 5, 6}] returns the new list {1, 2, 1}.
See also