Welcome to the CHICKEN Scheme pasting service

alist-update pasted by alicemaz on Thu Aug 27 23:19:24 2020

#;22> (define l `())
#;23> (set! l (alist-update 'alice 1 l))
#;24> l
((alice . 1))
#;25> (alist-update! 'alice 2 l)
((alice . 2))
#;26> l
((alice . 2))
#;27> (alist-update! 'bob 3 l)
((bob . 3) (alice . 2))
#;28> l
((alice . 2))

srfi-1 comparsion added by alicemaz on Thu Aug 27 23:25:15 2020

; loading /usr/local/lib/dev-chicken/11/srfi-1.so ...
#;31> (define x `(1 2 3))
#;32> x
(1 2 3)
#;33> (reverse! x)
(3 2 1)
#;34> x
(1)

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which R5RS procedure returns `'(2 3)' when given `'(1 2 3)' as input?
Visually impaired? Let me spell it for you (wav file) download WAV