(+> x & forms)
Just like ->> but for ints will index into vectors and sequences and get
into maps, whereas for strings, booleans and nils, will be passed to the
thread-value as a lookup param. Also wraps lambdas.
As in:
(let [m {1 {"b" [0 1 {:c :res}]}}]
(+> m 1 "b" 2 :c name #(str "hi" % "!"))) ;=> "hi res!"
Just like ->> but for ints will index into vectors and sequences and `get` into maps, whereas for strings, booleans and nils, will be passed to the thread-value as a lookup param. Also wraps lambdas. As in: (let [m {1 {"b" [0 1 {:c :res}]}}] (+> m 1 "b" 2 :c name #(str "hi" % "!"))) ;=> "hi res!"
(+>> x & forms)
Just like ->> but for ints will index into vectors and sequences and get
into maps, whereas for strings, booleans and nils, will be passed to the
thread-value as a lookup param. Also wraps lambdas.
As in:
(let [m {1 {"b" [0 1 {:c :res}]}}]
(+>> m 1 "b" 2 :c name #(str "hi" % "!"))) ;=> "hi res!"
Just like ->> but for ints will index into vectors and sequences and `get` into maps, whereas for strings, booleans and nils, will be passed to the thread-value as a lookup param. Also wraps lambdas. As in: (let [m {1 {"b" [0 1 {:c :res}]}}] (+>> m 1 "b" 2 :c name #(str "hi" % "!"))) ;=> "hi res!"
(=>> x & thread)
Just like x>> but first composes stateless transducers into a function that
r/fold
s in parallel the values flowing through the thread. Remaining
stateful transducers are composed just like x>>.
Just like x>> but first composes stateless transducers into a function that `r/fold`s in parallel the values flowing through the thread. Remaining stateful transducers are composed just like x>>.
(=>> & args)
Just like x>>, for now
Just like x>>, for now
(x>> x & thread)
Just like +>> but first composes transducers into a function that sequences the thread values through the transducers.
Just like +>> but first composes transducers into a function that sequences the thread values through the transducers.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close