Setting up hash items at once
Posted: Tue Aug 15, 2017 9:39 am
Hi guys,
is it possible to set hash items at once in hash definition?
is it possible to set hash items at once in hash definition?
Code: Select all
;; this works
(define cities:cities)
(cities "ny" "new york")
(cities "sf" "san francisco")
(println (cities "sf"))
;; this not
(define cities:cities '(
("ny" "new york")
("sf" "san francisco")))
(println (cities "sf"))