(make-error data)
Make an IError from anything.
data
can be whatever type you like (map, keyword, whatever).
Choose your own conventions for error payloads.
Make an IError from anything. `data` can be whatever type you like (map, keyword, whatever). Choose your own conventions for error payloads.
(pipeline [f & more-fs] init)
Pass init
data value into a pipeline of functions.
As soon as an error is encountered, the pipeline will return it.
Otherwise the return value from each step function will be passed as the input into the
next function until all functions have been called, and the final result will be returned.
When there are no functions, simply returns init
Pass `init` data value into a pipeline of functions. As soon as an error is encountered, the pipeline will return it. Otherwise the return value from each step function will be passed as the input into the next function until all functions have been called, and the final result will be returned. When there are no functions, simply returns `init`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close