vl-member-if-not
 
 
 

Determines if the predicate is nil for one of the list members

(vl-member-if-not  predicate-function list)

The vl-member-if-not function passes each element in list to the function specified in predicate-function. If the function returns nil, vl-member-if-not returns the rest of the list in the same manner as the member function.

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, starting with the first element that fails the test and containing all elements following this in the original argument. If none of the elements fails the test condition, vl-member-if-not returns nil.

Examples

_$ (vl-member-if-not 'atom
'(1 "Str" (0 . "line") nil t))
((0 . "line") nil T)
See Also