Hash from two arrays: Difference between revisions
Content added Content deleted
Line 2,168: | Line 2,168: | ||
(define array2 (vector 1 2 3 4)) |
(define array2 (vector 1 2 3 4)) |
||
;; Making the hash is just a simple |
;; Making the hash is just a simple list operation. |
||
(define dictionary (map cons (vector->list array1) |
(define dictionary (map cons (vector->list array1) |
||
(vector->list array2))) |
(vector->list array2))) |