Determines if the predicate is true for one of the list members
(vl-member-if predicate-functionlist)
vl-member-if function passes each element in list to the function specified in predicate-function. If predicate-function returns a non-nil value, vl-member-if returns the rest of the list in the same manner as the member function.
TheArguments
T for any user-specified condition. The predicate-function value can take one of the following forms:
The test function. This can be any function that accepts a single argument and returnsA list to be tested.
Return Values
vl-member-if returns nil.
A list, starting with the first element that passes the test and containing all elements following this in the original argument. If none of the elements passes the test condition,Examples
The following command draws a line:
_$ (COMMAND "_.LINE" '(0 10) '(30 50) nil)
nil
vl-member-if to return association lists describing an entity, if the entity is a line:
The following command uses_$ (vl-member-if
'(lambda (x) (= (cdr x) "AcDbLine"))
(entget (entlast)))
((100 . "AcDbLine") (10 0.0 10.0 0.0) (11 30.0 50.0 0.0) (210 0.0 0.0 1.0))
vl-member-if-not function.
The