CrossClj

0.1.1 docs

SourceDocs



RECENT

    maybe-thread

    Clojars

    Nov 17, 2014


    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    Maybe Thread

    Build Status

    Combine the thread operator (-> or ->>) with maybe monad.

    Setup

    Add to your project.clj file:

    [maybe-thread "0.1.0"]
    

    Usage

    (require '[thread-maybe.core :refer :all])
    
    (defn nil-fn [& _] nil)
    
    (maybe-> 10 nil-fn (+ 20))  #=> nil
    (maybe->> 10 nil-fn (+ 20)) #=> nil
    

    License

    Copyright © 2014 Joseph Wilk

    Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.