list-set! -- r7rs Definition mutator!;
list-set-car! (from vonuvoli);Procedure variants:
((list-not-null range-offset any) -> (undefined))
list-not-null;range-offset;any;undefined;scheme:base -- (scheme base);scheme -- (scheme);(list-set! list k obj)Domain: It is an error if
kis not a valid index oflist.The
list-set!procedure storesobjin elementkoflist.(let ((ls (list 'one 'two 'five!))) (list-set! ls 2 'three) ls) ===> (one two three) (list-set! '(0 1 2) 1 "oops") ===> #error ; constant list
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.