hylang/hy — pull request #475 by puffnfresh (2014-01-25 22:57:49+00:00)
Title: Add `items`, `values` and `keys` methods to HyDict

Useful for macros, for example:

(defmacro defn-checked [n x b]
`(defn ~n [(unquote-splice (.keys x))]
(print "Expecting:" (unquote-splice (.values x))) ~b))

(defn-checked hello {name str age int}
(print "Hello" name "you are" age))

(hello "Godzilla" 60)

;; Expecting:
;; Hello Godzilla you are 60