Skip to content

Instantly share code, notes, and snippets.

@atroche
Last active August 9, 2016 22:25
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 atroche/a8e731202cdc01d7e0bbe0c4102704b9 to your computer and use it in GitHub Desktop.
Save atroche/a8e731202cdc01d7e0bbe0c4102704b9 to your computer and use it in GitHub Desktop.
;; in response to https://clojurians.slack.com/archives/datomic/p1470774093001186
(let [members (:company/members company-entity)]
;; could do an if and return an empty collection, but nil punning is idiomatic
(when (contains? members person-entity)
members))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment