monaxhyd

Hy on monaxhyd, a monad library for Hy


License
EPL-1.0
Install
pip install monaxhyd==0.2.1

Documentation

Hy on Monaxhyd

Build Status Downloads Version

This library is a loose port of Clojure's algo.monads to Hy. It's a work heavily in progress at the moment, and it doesn't do very much yet.

Example

(require monaxhyd.core)
(import [monaxhyd [monads]])

(domonad monads.identity-m [[a 1]
                            [b (inc a)]]
                           (+ a b))

;; => 3

More examples can be found in the test suite.

License

This software is heavily based on algo.monads, and as such, is a derived work under the same Eclipse Public License 1.0.