Popularity
1.9
Declining
Activity
0.0
Stable
4
2
1

Programming language: Crystal
License: MIT License
Tags: Algorithms And Data Structures    
Latest version: v0.3.0

multiset.cr alternatives and similar shards

Based on the "Algorithms and Data structures" category.
Alternatively, view multiset.cr alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of multiset.cr or a related project?

Add another 'Algorithms and Data structures' Shard

README

multiset

Travis (.com) Documentation

A multiset (bag) implementation in Crystal.

Installation

Add this to your application's shard.yml:

dependencies:
  multiset:
    github: tcrouch/multiset.cr

Usage

require "multiset"

ms1 = Multiset{1, 1}
ms1 << 2                          # => Multiset{1, 1, 2}
ms1.merge [3, 4]                  # => Multiset{1, 1, 2, 3, 4}
ms2 = Multiset.new [2, 3, 4]
ms2.subset?(ms1)                  # => true
ms1 & ms2                         # => Multiset{2, 3, 4}

Development

crystal spec

Contributing

  1. Fork it
  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