Jump to content

Associative array/Creation: Difference between revisions

Line 1,288:
Scheme has association lists (alists), which are inefficient, ordered maps with arbitrary keys and values.
<lang scheme>(define my-dict '((a b) (1 hello) ("c" (a b c)))
(assoc 'a my-dict) ; evaluates to '(a b)</lang>
 
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.