Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Hash-from-two-arrays/EchoLisp/hash-from-two-arrays.l
Normal file
10
Task/Hash-from-two-arrays/EchoLisp/hash-from-two-arrays.l
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
(lib 'hash)
|
||||
|
||||
(define H (make-hash))
|
||||
(define keys '(elvis simon antoinette))
|
||||
(define kvalues '("the king" "gallubert" "de gabolde d'Audan"))
|
||||
|
||||
(list->hash (map cons keys kvalues) H)
|
||||
→ #hash:3
|
||||
(hash-ref H 'elvis)
|
||||
→ "the king"
|
||||
Loading…
Add table
Add a link
Reference in a new issue