-
-
Save atroche/a8e731202cdc01d7e0bbe0c4102704b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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