Index of all namespaces
maybe monad combined with thread operators
Combine the thread operator (-> or ->>) with maybe monad.
Add to your project.clj file:
(require '[thread-maybe.core :refer :all]) (defn nil-fn [& _] nil) (maybe-> 10 nil-fn (+ 20)) #=> nil (maybe->> 10 nil-fn (+ 20)) #=> nil
Copyright © 2014 Joseph Wilk
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.