HashSet

cats.collections.HashSet$
See theHashSet companion class
object HashSet

Attributes

Companion
class
Source
HashSet.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
HashSet.type

Members list

Value members

Concrete methods

final def apply[A](as: A*)(implicit hash: Hash[A]): HashSet[A]

Creates a new cats.data.HashSet which contains all elements of as.

Creates a new cats.data.HashSet which contains all elements of as.

Value parameters

as

the elements to add to the cats.data.HashSet.

hash

the cats.kernel.Hash instance used for hashing values.

Attributes

Returns

a new cats.data.HashSet which contains all elements of as.

Source
HashSet.scala
final def empty[A](implicit hash: Hash[A]): HashSet[A]

Creates a new empty cats.data.HashSet which uses hash for hashing.

Creates a new empty cats.data.HashSet which uses hash for hashing.

Value parameters

hash

the cats.kernel.Hash instance used for hashing values.

Attributes

Returns

a new empty cats.data.HashSet.

Source
HashSet.scala
final def fromFoldable[F[_], A](fa: F[A])(implicit F: Foldable[F], hash: Hash[A]): HashSet[A]

Creates a new cats.data.HashSet which contains all elements of fkv.

Creates a new cats.data.HashSet which contains all elements of fkv.

Value parameters

F

the cats.Foldable instance used for folding the structure.

fa

the cats.Foldable structure of elements to add to the cats.data.HashSet.

hash

the cats.kernel.Hash instance used for hashing values.

Attributes

Returns

a new cats.data.HashSet which contains all elements of fa.

Source
HashSet.scala
final def fromIterableOnce[A](iterable: IterableOnce[A])(implicit hash: Hash[A]): HashSet[A]

Creates a new cats.data.HashSet which contains all elements of iterable.

Creates a new cats.data.HashSet which contains all elements of iterable.

Value parameters

hash

the cats.kernel.Hash instance used for hashing values.

seq

the iterable source of elements to add to the cats.data.HashSet.

Attributes

Returns

a new cats.data.HashSet which contains all elements of iterable.

Source
HashSet.scala
final def fromSeq[A](seq: Seq[A])(implicit hash: Hash[A]): HashSet[A]

Creates a new cats.data.HashSet which contains all elements of seq.

Creates a new cats.data.HashSet which contains all elements of seq.

Value parameters

hash

the cats.kernel.Hash instance used for hashing values.

seq

the sequence of elements to add to the cats.data.HashSet.

Attributes

Returns

a new cats.data.HashSet which contains all elements of seq.

Source
HashSet.scala

Deprecated methods

Attributes

Deprecated
true
Source
HashSet.scala

Implicits

Implicits

Attributes

Source
HashSet.scala

Attributes

Source
HashSet.scala

Attributes

Source
HashSet.scala
implicit def catsCollectionsShowForHashSet[A](implicit A: Show[A]): Show[HashSet[A]]

Attributes

Source
HashSet.scala