(n-> expr & forms)
like some->, except predicates prefixed with n either pass through the prior result or return nil for the entire form.
Make an assertion about your data. Only proceed if that assertion is truthy.
(use 'n.core)
(def person
{:name "Nancy"
:dog "Claire"
:age 37})
(n-> person
(:age)
(n (> 30))
(inc)) => 38
(n-> person
(:age)
(n (> 40))
(inc)) => nil
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close