Skip to content

hash-get

Type ​

meta-lisp
(all (K V) (-> (hash-t K V) K V))

Description ​

Get value by key. Raises an error if the key does not exist.

Examples ​

meta-lisp
(hash-get (@hash "a" 1 "b" 2) "a")  ;; => 1
;; (hash-get "c" (@hash "a" 1 "b" 2))  ;; error: key not found