Function Entry: VL-MEMBER-IF-NOT

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VL-MEMBER-IF-NOT

Name

vl-member-if-not

Class

Visual LISP List Function

Syntax

(vl-member-if-not comparator lst)

Arguments and Values

  • comparator: a symbol, function, or lambda expression; must return nil or non-nil.
  • lst: any list of items.

Description

Returns the tail of lst starting with the first item for which comparator returns nil. Validation of each list item stops at the first element whose comparator evaluation is nil, and the remainder of the list from that element onward is returned. If comparator is non-nil for every element, returns nil.

Return Values

The list tail beginning at the first element where comparator returned nil, or nil if every element matches the comparator.

Side Effects

Side effects are those of calling comparator.

Examples

  • (vl-member-if-not '(lambda (x) (< x 5)) '(1 2 3 4 5 6 7 8 9 10)) returns (5 6 7 8 9 10) — the first element for which (< x 5) is false is 5, and the tail from 5 onward is returned.

Availability

  • AutoCAD 2026: documented (Autodesk V Functions Reference; included in the family table).
  • BricsCAD V26: documented (BricsCAD V26 dedicated per-symbol page).
  • Status: documented in both vendors. Phase-5 closure achieved via direct citation of the BricsCAD V26 per-symbol page, which provides the per-element semantics that Autodesk's family-level prose only summarises.

See Also

  • vl-member-if — companion that returns the tail from the first element where the comparator is non-nil.

Source Notes