Liking cljdoc? Tell your friends :D

n

Along the river

About


(n-> expr & forms)

Usage

like some->, except predicates prefixed with n either pass through the prior result or return nil for the entire form.

Build Status Clojars Project

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