| Functions Documentation |
|
| Name |
filter |
| Syntax |
(filter list variable function) => (list) |
| Argument List |
list: The list that will be filtered.
variable: The name of the variable to be used in the function.
function: A boolean function that is used to filter the list. |
| Returns |
list: A list where all elements belong to the passed in list and return true for the boolean function. |
| Category |
0.99, list
|
| Description |
Filter takes the passed in list and returns a new list made up of elements of the passed in list that returned true for the boolean function. |
| Example |
(filter '(1 2 3 5 7 9 11 13) element (gr element 5))
That code will return the list (7 9 11 13) |
| Comment |
Very nice helper function that allows you to filter out stuff you do not want in lists. |