meander 2022-05-16

Hello struggling with something that maybe obvious but. How do I get the complement of this such that I return all records that the keyword :signedLicenseKeyis present?

:signedLicenseKey  (m/pred nil? ?signedLicenseKey)

@garyberger some? is the complement of nil? in Clojure, so you can also use: (m/pred some? ?signedLicenseKey)

👍 1
1

You can also use (m/some ?signedLicenseKey)

💯 1

I remembered the wrong comp 😄

Have you tried

:signedLicenseKey  (m/pred (comp nil?) ?signedLicenseKey)

actually this does work

(m/pred (complement nil?) ?signedLicenseKey)