ExtraImplicits

scala.math.Equiv.ExtraImplicits

Attributes

Source
Equiv.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Implicits

Members list

Implicits

Implicits

implicit def seqEquiv[CC <: (Seq), T](implicit eqv: Equiv[T]): Equiv[CC[T]]

Not in the standard scope due to the potential for divergence: For instance implicitly[Equiv[Any]] diverges in its presence.

Not in the standard scope due to the potential for divergence: For instance implicitly[Equiv[Any]] diverges in its presence.

Type parameters

CC

the collection type constructor, a subtype of Seq (e.g., List, Vector)

T

the element type of the collection

Value parameters

eqv

the Equiv instance used to compare individual elements of type T

Attributes

Returns

an Equiv for sequences of type CC[T] that compares them element-by-element using eqv

Source
Equiv.scala
implicit def sortedSetEquiv[CC <: (SortedSet), T](implicit eqv: Equiv[T]): Equiv[CC[T]]

Type parameters

CC

the collection type constructor, a subtype of SortedSet

T

the element type of the collection

Value parameters

eqv

the Equiv instance used to compare individual elements of type T

Attributes

Returns

an Equiv for sorted sets of type CC[T] that compares them element-by-element in iteration order using eqv

Source
Equiv.scala