clystar
Basic Functional routines for Crystal, inspired by Clojure
Installation
-
Add the dependency to your
shard.yml:dependencies: clystar: github: yvern/clystar -
Run
shards install
Usage
require "clystar"
juxtmacro (vararg): turnsjuxt T, f, g, hinto->(x : T){ f(x), g(x), h(x) }pipemacro (vararg): turnspipe T, f, g, hinto->(x : T){ h(g(f(x))) }>>operator (forProcs, binary forward composition): turns->f(T) >> ->g(U)into->(x : T){ g(f(x)) }
Development
shards installcrystal watch.cr- add your new features!
Contributing
- Fork it (https://github.com/yvern/clystar/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- yvern - creator and maintainer