sublis_apply_lambda SciMax Toolbox sublist_indices

SciMax Toolbox >> sublist

sublist

Maxima Function

Calling Sequence

sublist (list, p)

Description

Returns the list of elements of list for which the predicate p returns 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]
sublis_apply_lambda SciMax Toolbox sublist_indices