Typeclass-based general purpose collections API for Scala. Extends from Cats. The focus is on defining good abstractions not new data-structure implementations. Instances are based upon core Scala collections and Dogs
Simon Peyton-Jones Bulk Types with Class http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.144.1863&rep=rep1&type=pdf
"com.github.benhutchison" %% "hoard" % version
"com.github.benhutchison" %%% "hoard" % version
Published for Scala 2.11, 2.12
scala> import hoard._, implicits._ import hoard._ import implicits._ scala> List(1, 2, 3).front res0: Option[(Int, List[Int])] = Some((1,List(2, 3))) scala> Vector.empty[Int].front res3: Option[(Int, scala.collection.immutable.Vector[Int])] = None
|0.3||Nov 16||List/Vector instances inherit from cats instances to avoid ambiguity. Scala 2.12, cats 0.8.1|
|0.4||Nov 17||Scala 2.12, cats 1.0.0-RC1|
Issues and pull requests are welcome. Code contributions should be aligned with the library scope to be included, and include unit tests.
This project supports the Typelevel code of conduct and aims that its channels (mailing list, Gitter, github, etc.) to be welcoming environments for everyone.