Hy on monaxhyd, a monad library for Hy
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
monaxhyd
tests
.gitignore
.travis.yml
EPL-1.0.txt
README.md
requirements.txt
setup.py

README.md

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.