← ZIO Prelude docs

Commutative

zio.prelude.Commutative
See theCommutative companion trait
object Commutative

Attributes

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

Members list

Value members

Concrete methods

def apply[A](implicit commutative: Commutative[A]): Commutative[A]

Summons an implicit Commutative[A].

Summons an implicit Commutative[A].

Attributes

Source
Commutative.scala
def make[A](f: (A, A) => A): Commutative[A]

Constructs a Commutative instance from a commutative binary operator.

Constructs a Commutative instance from a commutative binary operator.

Attributes

Source
Commutative.scala
def makeFrom[A](associative: Associative[A]): Commutative[A]

Constructs an Commutative instance from an associative instance.

Constructs an Commutative instance from an associative instance.

Attributes

Source
Commutative.scala

Implicits

Implicits

implicit def DeriveCommutative[F[_], A](implicit derive: Derive[F, Commutative], commutative: Commutative[A]): Commutative[F[A]]

Derives a Commutative[F[A]] given a Derive[F, Commutative] and a Commutative[A].

Derives a Commutative[F[A]] given a Derive[F, Commutative] and a Commutative[A].

Attributes

Source
Commutative.scala

Derives a Commutative[Either[E, A]] given a Commutative[E] and a Commutative[A].

Derives a Commutative[Either[E, A]] given a Commutative[E] and a Commutative[A].

Attributes

Source
Commutative.scala
implicit def MapCommutative[K, V : Commutative]: Commutative[Map[K, V]]

Derives a Commutative[Map[K, V]] given a Commutative[V].

Derives a Commutative[Map[K, V]] given a Commutative[V].

Attributes

Source
Commutative.scala

Derives a Commutative[Option[A]] given a Commutative[A]

Derives a Commutative[Option[A]] given a Commutative[A]

Attributes

Source
Commutative.scala
implicit def Tuple10Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple11Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple12Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple13Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple14Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple15Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple16Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple17Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative, Q : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple18Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative, Q : Commutative, R : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple19Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative, Q : Commutative, R : Commutative, S : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple20Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative, Q : Commutative, R : Commutative, S : Commutative, T : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple21Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative, Q : Commutative, R : Commutative, S : Commutative, T : Commutative, U : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple22Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative, J : Commutative, K : Commutative, L : Commutative, M : Commutative, N : Commutative, O : Commutative, P : Commutative, Q : Commutative, R : Commutative, S : Commutative, T : Commutative, U : Commutative, V : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple2Commutative[A : Commutative, B : Commutative]: Commutative[(A, B)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple3Commutative[A : Commutative, B : Commutative, C : Commutative]: Commutative[(A, B, C)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple4Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative]: Commutative[(A, B, C, D)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple5Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative]: Commutative[(A, B, C, D, E)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple6Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative]: Commutative[(A, B, C, D, E, F)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple7Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative]: Commutative[(A, B, C, D, E, F, G)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple8Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative]: Commutative[(A, B, C, D, E, F, G, H)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala
implicit def Tuple9Commutative[A : Commutative, B : Commutative, C : Commutative, D : Commutative, E : Commutative, F : Commutative, G : Commutative, H : Commutative, I : Commutative]: Commutative[(A, B, C, D, E, F, G, H, I)]

Derives a Commutative for a product type given a Commutative for each element of the product type.

Derives a Commutative for a product type given a Commutative for each element of the product type.

Attributes

Source
Commutative.scala