Maxima Function
sublist (list, p)
Returns the list of elements of list for which the predicate p returns true.
p
true
Example:
(%i1) L: [1, 2, 3, 4, 5, 6]; (%o1) [1, 2, 3, 4, 5, 6] (%i2) sublist (L, evenp); (%o2) [2, 4, 6]