clystar
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"
juxt
macro (vararg): turnsjuxt T, f, g, h
into->(x : T){ f(x), g(x), h(x) }
pipe
macro (vararg): turnspipe T, f, g, h
into->(x : T){ h(g(f(x))) }
>>
operator (forProcs
, binary forward composition): turns->f(T) >> ->g(U)
into->(x : T){ g(f(x)) }
Development
shards install
crystal 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
Repository
clystar
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- about 3 years ago
- November 2, 2021
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 00:48:06 GMT
Languages