Function Entry: VLE-SUBST-NTH

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

Function Entry: VLE-SUBST-NTH

Name

vle-subst-nth

Class

BricsCAD VLE Library Function

Syntax

(vle-subst-nth lst idx val)

Arguments and Values

  • lst input list where the item at position
  • idx is to be
  • set
  • idx the
  • index of the item to be replaced by new val
  • val the new
  • value to be set for the item

Description

sets / replaces the item at index idx in list 'lst' with specified new value val

Return Values

list lst without item at position idx;

if there is no item idx in lst the list remains unchanged;

if idx is < 0 or greater than the list length, the unchanged list is returned

Examples

(vle-subst-nth '(1 2 3 4 5) 2
99)    => '(1 2 99 4 5)

(vle-subst-nth '(1 2 3 4 5) 10 99)  =>
'(1 2 3 4 5)

Notes

index idx is 0-based

Availability

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

Source Notes