hoard


License

License

GroupId

GroupId

com.github.benhutchison
ArtifactId

ArtifactId

hoard_2.12
Last Version

Last Version

0.4
Release Date

Release Date

Type

Type

jar
Description

Description

hoard
hoard
Project Organization

Project Organization

com.github.benhutchison
Source Code Management

Source Code Management

https://github.com/benhutchison/hoard

Download hoard_2.12

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.4
org.typelevel : cats-core_2.12 jar 1.0.0-RC1
com.github.mpilquist : simulacrum_2.12 jar 0.11.0

test (2)

Group / Artifact Type Version
org.typelevel : cats-laws_2.12 jar 1.0.0-RC1
org.scalatest : scalatest_2.12 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.

com.github.benhutchison

typelevel.scala

Let the Scala compiler work for you.

Versions

Version
0.4
0.3