Function Entry: VLE-SET-CDRASSOC
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VLE-SET-CDRASSOC
Name
vle-set-cdrassoc
Class
BricsCAD VLE Library Function
Syntax
(vle-set-cdrassoc key lst val)
Arguments and Values
- key key value for the dotted pair value to search
- for
- lst list of
- dotted pairs
- val new
- value for dotted pairs with key 'key'
Description
searches 'lst' list for dotted-pairs with key 'key' and sets the value of the dotted pairs (if found) to 'val';
Return Values
the input list with changed values for dotted pairs with 'key';
if there is no dotted-pair with 'key', list 'lst' returns unchanged
Examples
(setq lst '((1 . "a")(2 . "b")(1 . "a")(2 . "b"))) (setq lst (vle-set-cdrassoc 1 lst "A")) returns '((1 . "A")(2 . "b")(1 . "A")(2 . "b"))
Notes
NOT a general replacement for (subst new old lst)
but useful replacement for : (subst new (assoc key lst) lst)
Availability
- AutoCAD 2026: not documented.
- BricsCAD V26: documented.
- Status: BricsCAD-only.
Source Notes
- [vle-set-cdrassoc (BricsCAD V26 DevRef)](https://developer.bricsys.com/bricscad/help/en_US/V26/DevRef/source/vlesetcdrassoc.htm)
- Status: documented (Phase 3 follow-up: body filled from the BricsCAD V26 per-symbol page on 2026-04-26).