Checks whether the predicate is not nil for one element combination
Supported Platforms: Windows and Mac OS
(vl-some predicate-function lst [lst ...])
Type: Subroutine or Symbol
The test function. This can be any function that accepts as many arguments as there are lists provided with vl-some, and returns T on a user-specified condition. The predicate-function value can take one of the following forms:
Type: List
A list to be tested.
Type: List or nil
The predicate value, if predicate-function returned a value other than nil; otherwise nil.
The vl-some function passes the first element of each supplied list as an argument to the test function, then the next element from each list, and so on. Evaluation stops as soon as the predicate function returns a non-nil value for an argument combination, or until all elements have been processed in one of the lists.
The following example checks whether nlst (a number list) has equal elements in sequence:
(setq nlst (list 0 2 pi pi 4)) (0 2 3.14159 3.14159 4) (vl-some '= nlst (cdr nlst)) T