Skip to content

Instantly share code, notes, and snippets.

@halgari
Last active January 2, 2016 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halgari/8322555 to your computer and use it in GitHub Desktop.
Save halgari/8322555 to your computer and use it in GitHub Desktop.
(deftype NotFound [])
(def not-found (NotFound.))
(defn get-check [m k]
(let [r (get m k not-found)]
(assert (not (identical? not-found r)))
r))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment