filter

filter

filter

Syntax (filter list variable function)
Arguments 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) Return to Functions list