chickadee » alist-lib » alist-set

alist-set alist key valueprocedure

Non-destructively associate a key and value in the alist.

alist
Alist in which to set
key
The key to set
value
The value to associate with key
(define (alist-set alist key value) (alist-cons key value alist))