ht
Used to replicate Elixir's [h|t]
syntax in a Crystal-ish way.
Installation
Add this to your application's shard.yml
:
dependencies:
ht:
github: willamin/ht
Usage
require "ht"
list = [1,2,3]
h, t = list.ht
Contributing
- Fork it ( https://github.com/willamin/ht/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
- willamin Will Lewis - creator, maintainer