Liking cljdoc? Tell your friends :D

dev.chrisodonnell.pliers


tee>cljmacro

(tee> x f)

Takes a value and an arity-1 function. Calls the function on the value. Meant to be used in a thread-first macro like:

(-> 1 (pliers/tee> println))

Takes a value and an arity-1 function. Calls the function on the value. Meant
to be used in a thread-first macro like:

(-> 1 (pliers/tee> println))
sourceraw docstring

tee>>cljmacro

(tee>> f x)

Takes a value and an arity-1 function. Calls the function on the value, returning the original value. Meant to be used in a thread-last macro like:

(->> 1 (pliers/tee>> println))

Takes a value and an arity-1 function. Calls the function on the value,
returning the original value. Meant to be used in a thread-last macro like:

(->> 1 (pliers/tee>> println))
sourceraw docstring

then>cljmacro

(then> x f)

Takes a value and an arity-1 function. Calls the function on the value, returning the result. Meant to be used in a thread-first macro like:

(-> 1 (pliers/then> (fn [v] (< 0 v 2))))

Takes a value and an arity-1 function. Calls the function on the value,
returning the result. Meant to be used in a thread-first macro like:

(-> 1 (pliers/then> (fn [v] (< 0 v 2))))
sourceraw docstring

then>>cljmacro

(then>> f x)

Takes a value and an arity-1 function. Calls the function on the value, returning the result. Meant to be used in a thread-last macro like:

(->> 1 (pliers/then>> (fn [v] (< 0 v 2))))

Takes a value and an arity-1 function. Calls the function on the value,
returning the result. Meant to be used in a thread-last macro like:

(->> 1 (pliers/then>> (fn [v] (< 0 v 2))))
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close