object coproduct
- Alphabetic
- By Inheritance
- coproduct
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait Align[A <: Coproduct, B <: Coproduct] extends (A) => B with Serializable
Type class supporting permuting this
Coproductinto the same order as anotherCoproductwith the same element types. - trait At[C <: Coproduct, N <: Nat] extends DepFn1[C] with Serializable
Type class supporting getting the Nth type from a coproduct C.
- trait Basis[Super <: Coproduct, Sub <: Coproduct] extends DepFn1[Super] with Serializable
Type class checking that : - coproduct is a sub-union of a bigger coproduct - embeds a sub-coproduct into a bigger coproduct
- sealed trait CoproductToEither[C <: Coproduct] extends DepFn1[C] with Serializable
Type class converting a
Coproductto anEither - trait Drop[C <: Coproduct, N <: Nat] extends DepFn1[C] with Serializable
Type class supporting dropping the first
n-elements of thisCoproduct - sealed trait EitherToCoproduct[L, R] extends DepFn1[Either[L, R]] with Serializable
Type class converting an
Eitherto aCoproduct - trait EitherToCoproductLowPrio extends AnyRef
- trait ExtendBy[L <: Coproduct, R <: Coproduct] extends Serializable
Type class which combines the functionality of ExtendRightBy and ExtendLeftBy.
Type class which combines the functionality of ExtendRightBy and ExtendLeftBy. The combined coproduct and be produced by either providing the left part or the right part.
- trait ExtendLeftBy[L <: Coproduct, R <: Coproduct] extends DepFn1[R] with Serializable
Extend a coproduct to the left by another coproduct.
Extend a coproduct to the left by another coproduct. Conceptually similar to prepending a List to the original List
- trait ExtendRight[C <: Coproduct, T] extends DepFn1[C] with Serializable
Type class supporting extending a coproduct on the right
- trait ExtendRightBy[L <: Coproduct, R <: Coproduct] extends DepFn1[L] with Serializable
Similar to ExtendLeftBy.
Similar to ExtendLeftBy. Conceptually similar to appending a List to the original List
- trait Filter[C <: Coproduct, U] extends DepFn1[C] with Serializable
Type class which filters a coproduct by a type U, producing a coproduct containing only U.
Type class which filters a coproduct by a type U, producing a coproduct containing only U. (The output is a coproduct because type U may occur multiple times in the original coproduct)
- trait FilterNot[C <: Coproduct, U] extends DepFn1[C] with Serializable
Type class which filters a coproduct by a type U, producing a coproduct that does not contain U If U does not exist in the coproduct, the original coproduct is returned
- trait FlatMap[C <: Coproduct, F <: Poly] extends DepFn1[C] with Serializable
For each type in the coproduct run a function (provide in Poly) which produces some coproduct, then flatten all the resulting coproducts.
For each type in the coproduct run a function (provide in Poly) which produces some coproduct, then flatten all the resulting coproducts. This is conceptually similar to List#flatMap with the list items being types
- trait Folder[F <: Poly, C <: Coproduct] extends DepFn1[C] with Serializable
Type class folding all possible types of a coproduct down to a single type
- trait IndexOf[C <: Coproduct, A] extends DepFn0 with Serializable
find index of A in C
- trait InitLast[C <: Coproduct] extends Serializable
Type class providing access to init and last of a Coproduct
- trait Inject[C <: Coproduct, I] extends Serializable
Type class for converting a value of type I into the coproduct C.
Type class for converting a value of type I into the coproduct C. (Type I need to occur in the coproduct C)
- trait IsCCons[C <: Coproduct] extends Serializable
Type class providing access to head and tail of a Coproduct
- trait LeftFolder[C <: Coproduct, In, F] extends DepFn2[C, In] with Serializable
Type class which performs left fold on a coproduct.
Type class which performs left fold on a coproduct. Provided with a dependent function that can convert all types in a coproduct into the same type as the initial value of type In, combines the actual value of the coproduct with the initial value
- trait Length[C <: Coproduct] extends DepFn0 with Serializable
Type class supporting computing the type-level Nat corresponding to the length of this
Coproduct'. - sealed trait LiftAll[F[_], In <: Coproduct] extends AnyRef
Type class supporting finding a typeclass instance for each type in a coproduct, resulting in a coproduct of typeclass instances.
- trait LowPriorityPrepend extends LowestPriorityPrepend
- trait LowPriorityRemove extends AnyRef
- trait LowPriorityRemoveLast extends AnyRef
- trait LowPriorityRotateLeft extends AnyRef
- trait LowPriorityRotateRight extends AnyRef
- trait LowestPriorityPrepend extends AnyRef
- trait Mapper[F <: Poly, C <: Coproduct] extends DepFn1[C] with Serializable
For each type in a coproduct, map it to another type.
For each type in a coproduct, map it to another type. Conceptually similar to List#map
- trait Partition[C <: Coproduct, U] extends DepFn1[C] with Serializable
Type class for filtering coproduct by type U, splitting into a coproduct containing only type U and a coproduct of all other types.
- trait Prepend[P <: Coproduct, S <: Coproduct] extends DepFn1[Either[P, S]] with Serializable
Type class supporting prepending to this
Coproduct. - trait Reify[L <: Coproduct] extends DepFn0 with Serializable
Type class supporting reifying a
Coproductof singleton types. - trait Remove[C <: Coproduct, U] extends DepFn1[C] with Serializable
Type class that can removes the first occurrence of a particular type from a coproduct, splitting it into the specified type U and a coproduct representing the rest of the coproduct (with first occurrence of U removed).
Type class that can removes the first occurrence of a particular type from a coproduct, splitting it into the specified type U and a coproduct representing the rest of the coproduct (with first occurrence of U removed). Also provides the inverse method which allows for reconstructing the original coproduct from its subparts.
- trait RemoveLast[C <: Coproduct, I] extends DepFn1[C] with Serializable
Type class similar to Remove, but removes the last occurance of the specified type (I) instead
- trait Reverse[C <: Coproduct] extends DepFn1[C] with Serializable
Type class supporting reversing a Coproduct
- trait RotateLeft[C <: Coproduct, N <: Nat] extends DepFn1[C] with Serializable
Type class supporting rotating a Coproduct left
- trait RotateRight[C <: Coproduct, N <: Nat] extends DepFn1[C] with Serializable
Type class supporting rotating a Coproduct right
- trait RuntimeInject[C <: Coproduct] extends Serializable
Type class supporting the injection of runtime values of type
AnyinCoproduct.Type class supporting the injection of runtime values of type
AnyinCoproduct.- Annotations
- @implicitNotFound("Implicit not found. CNil has no values, so it's impossible to convert anything to it")
- trait RuntimeInjectLowPrio extends AnyRef
- trait Selector[C <: Coproduct, T] extends Serializable
Type class for attempting to get a value of type T out of an instance of corpdocut C.
Type class for attempting to get a value of type T out of an instance of corpdocut C. If the coproduct instance is not of the specified type, None is returned
- trait Split[C <: Coproduct, N <: Nat] extends DepFn1[C] with Serializable
Type class supporting splitting this
Coproductat the nth element returning prefix and suffix as a coproduct - trait Take[C <: Coproduct, N <: Nat] extends DepFn1[C] with Serializable
Type class supporting taking the first
n-elements of thisCoproduct - trait ToHList[L <: Coproduct] extends Serializable
Type class computing the
HListtype corresponding to thisCoproduct. - trait Unifier[C <: Coproduct] extends DepFn1[C] with Serializable
Type class that unifies all the types in a coproduct into one single type which is their closest common parent type (i.e.
Type class that unifies all the types in a coproduct into one single type which is their closest common parent type (i.e. least upper bound of all the types in the coproduct)
- trait ZipConst[Z, V <: Coproduct] extends DepFn2[Z, V] with Serializable
Type class supporting zipping this
Coproductwith a constant of typeZreturning aCoproductof tuples of the form ({element from inputCoproduct}, {supplied constant}) - trait ZipWith[H <: HList, V <: Coproduct] extends DepFn2[H, V] with Serializable
Type class supporting zipping a
Coproductwith anHList, resulting in aCoproductof tuples of the form ({element from inputCoproduct}, {element from inputHList}) - trait ZipWithIndex[C <: Coproduct] extends DepFn1[C] with Serializable
Type class supporting zipping a
Coproductwith its element indices, resulting in aCoproductof tuples of the form ({element from input tuple}, {element index}) - trait ZipWithKeys[K <: HList, V <: Coproduct] extends DepFn1[V] with Serializable
Type class that zips an HList with a Coproduct, producing a Coproduct of tuples where each element from the original coproduct is combined with the matching HList element
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- implicit def coproductPartialOrdering[H, T <: Coproduct](implicit ordering: Ordering[H], partialOrdering: PartialOrdering[T]): PartialOrdering[:+:[H, T]]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Align extends Serializable
- object At extends Serializable
- object Basis extends Serializable
- object CoproductToEither extends Serializable
- object Drop extends Serializable
- object EitherToCoproduct extends EitherToCoproductLowPrio with Serializable
- object ExtendBy extends Serializable
- object ExtendLeftBy extends Serializable
- object ExtendRight extends Serializable
- object ExtendRightBy extends Serializable
- object Filter extends Serializable
- object FilterNot extends Serializable
- object FlatMap extends Serializable
- object Folder extends Serializable
- object IndexOf extends Serializable
- object InitLast extends Serializable
- object Inject extends Serializable
- object IsCCons extends Serializable
- object LeftFolder extends Serializable
- object Length extends Serializable
- object LiftAll
- object Mapper extends Serializable
- object Partition extends Serializable
- object Prepend extends LowPriorityPrepend with Serializable
- object Reify extends Serializable
- object Remove extends LowPriorityRemove with Serializable
- object RemoveLast extends LowPriorityRemoveLast with Serializable
- object Reverse extends Serializable
- object RotateLeft extends LowPriorityRotateLeft with Serializable
- object RotateRight extends LowPriorityRotateRight with Serializable
- object RuntimeInject extends RuntimeInjectLowPrio with Serializable
- object Selector extends Serializable
- object Split extends Serializable
- object Take extends Serializable
- object ToHList extends Serializable
- object Unifier extends Serializable
- object ZipConst extends Serializable
- object ZipWith extends Serializable
- object ZipWithIndex extends Serializable
- object ZipWithKeys extends Serializable
- implicit object cnilOrdering extends Ordering[CNil]