datacr
Version, currently master branch1 version
- master branchlatestMar 4, 2017
github.com/Fusion/data.cr
A bumbling foray in immutable data structures land. In Crystal!
6 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
datacr:
github: Fusion/data.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.20.3- License
- MIT
- Author
- Chris F Ravenscroft <chris@voilaweb.com>
- Target
rrbfrom src/crdata.cr
Dependencies
This version declares no dependencies.
README
# data.cr
Data Structures for Crystal Lang. A very modest start.
## What's New
- 02/04/17: Scala-like Lists and Stacks
- 02/01/17: Second check-in: a modest, not thoroughly tested immutable map
- 01/21/17: First check-in: AVL tree
## Installation
Add these package to your dependencies in shard.yml:
dependencies:
data:
github: fusion/data.cr
## Usage
Include, use. See examples/{avltree.cr, map.cr, list.cr, stack.cr}
Also `crystal spec`
## Data Structures:
They are all enumerables and can be walked, filtered, etc.
### Mutable
These serve as the backbone for the immutable ones:
- Tree, AVLTree, LinkedList
### Persistent
- Map
- List
- Stack
## To do
* List (done), Queue, Stack (done), Vector (important!)
* Proper iterators
## Contributing
1. Fork it ( https://github.com/fusion/data.cr/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [[fusion]](https://github.com/fusion) Chris F Ravenscroft - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Mar 4, 2017
- Crystal
0.20.3- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Fusion/data.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1