hoard


License

License

GroupId

GroupId

com.github.benhutchison
ArtifactId

ArtifactId

hoard_sjs0.6_2.11
Last Version

Last Version

0.3
Release Date

Release Date

Type

Type

jar
Description

Description

hoard
hoard
Project URL

Project URL

https://github.com/benhutchison/hoard
Project Organization

Project Organization

com.github.benhutchison

Download hoard_sjs0.6_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.benhutchison/hoard_sjs0.6_2.11/ -->
<dependency>
    <groupId>com.github.benhutchison</groupId>
    <artifactId>hoard_sjs0.6_2.11</artifactId>
    <version>0.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.benhutchison/hoard_sjs0.6_2.11/
implementation 'com.github.benhutchison:hoard_sjs0.6_2.11:0.3'
// https://jarcasting.com/artifacts/com.github.benhutchison/hoard_sjs0.6_2.11/
implementation ("com.github.benhutchison:hoard_sjs0.6_2.11:0.3")
'com.github.benhutchison:hoard_sjs0.6_2.11:jar:0.3'
<dependency org="com.github.benhutchison" name="hoard_sjs0.6_2.11" rev="0.3">
  <artifact name="hoard_sjs0.6_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.benhutchison', module='hoard_sjs0.6_2.11', version='0.3')
)
libraryDependencies += "com.github.benhutchison" % "hoard_sjs0.6_2.11" % "0.3"
[com.github.benhutchison/hoard_sjs0.6_2.11 "0.3"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.8
org.scala-js : scalajs-library_2.11 jar 0.6.13
org.typelevel : cats-core_sjs0.6_2.11 jar 0.8.1
com.github.mpilquist : simulacrum_2.11 jar 0.10.0

test (3)

Group / Artifact Type Version
org.scala-js : scalajs-test-interface_2.11 jar 0.6.13
org.typelevel : cats-laws_sjs0.6_2.11 jar 0.8.1
org.scalatest : scalatest_sjs0.6_2.11 jar 3.0.0

Project Modules

There are no modules declared in this project.

hoard

Overview

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

Inspired by:

SBT Coordinates

[Maven Central][search.maven]

Scala.jvm: "com.github.benhutchison" %% "hoard" % version

Scala.js: "com.github.benhutchison" %%% "hoard" % version

Published for Scala 2.11, 2.12

Build Status

Example

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

Version History

Version When Changes
0.1 Aug 16 Defined front to de-structure Sequences, implement List and Vector
0.2 na skipped
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

Contibuting

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.

Versions

Version
0.3
0.2
0.1