vl-some


(vl-some comparator [ listA [ listB ... ] ] )

This function verifies all corresponding items from listA against those from listB (and further lists) using the comparator function.

Arguments

comparator  (symbol, function, lambda) function used for the boolean comparison; must return NIL resp. non-NIL
listA  (list) any list of items
listB  (list) any list of items
  :

Return

the last result of comparator function call, or NIL

Example

(vl-some '= '(1 2 5 8 9) '(2 3 5 6 7))  returns T (number 5 is in both lists, at same position)

Remarks

passes the 1st item of listA, and the 1st item of listB (and so on) to the comparator function, then the 2nd item of listA and the 2nd item of listB (and so on), until a comparison returns non-NIL



©  Bricsys NV. All rights reserved.