vl-remove-if
 
 
 

Returns all elements of the supplied list that fail the test function

(vl-remove-if  predicate-function list)

Arguments

predicate-function

The test function. This can be any function that accepts a single argument and returns T for any user-specified condition. The predicate-function value can take one of the following forms:

  • A symbol (function name)
  • '(LAMBDA (A1 A2) ...)
  • (FUNCTION (LAMBDA (A1 A2) ...))
list

A list to be tested.

Return Values

A list containing all elements of list for which predicate-function returns nil.

Examples

_$ (vl-remove-if 'vl-symbolp
(list pi t 0 "abc"))
(3.14159 0 "abc")