Function Entry: VLE-LIST-SPLIT

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

Function Entry: VLE-LIST-SPLIT

Name

vle-list-split

Class

BricsCAD VLE Library Function

Syntax

(vle-list-split lst item)

Arguments and Values

  • lst list to be splitted at 'item'
  • item the
  • data where 'lst' is to be splitted

Description

splits a list at a given item and returns both list parts

Return Values

a list containing the "left" and the "right" sub-lists of input list lst; item is added to the "right" list, if present;

if item is not present in lst, the "right" list part is NIL

Examples

(vle-list-split '(1 2 3 4 5)
3)  => '((1 2) (3 4 5))

(vle-list-split '(1 2 3 4 5) 8)  =>
'((1 2 3 4 5) nil)

(vle-list-split '(1 2 3 4 5) 1)  =>
'(NIL (1 2 3 4 5))

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes