final case class Wedge[A, B](get: (A) => B, reverseGet: (B) => A) extends Product with Serializable
Composition of a SplitMono and a SplitEpi, yielding an even weaker structure where neither
get andThen reverseGet and reverseGet andThen get is an identity but both are idempotent.
- Source
- Wedge.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Wedge
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Wedge(get: (A) => B, reverseGet: (B) => A)
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
- def andThen[C](f: Iso[B, C]): Wedge[A, C]
Compose with an Iso.
- def andThen[C](f: Wedge[B, C]): Wedge[A, C]
Compose with another Wedge.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val get: (A) => B
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def imapA[C](f: (A) => C, g: (C) => A): Wedge[C, B]
Wedge is an invariant functor over A.
- def imapB[C](f: (C) => B, g: (B) => C): Wedge[A, C]
Wedge is an invariant functor over B.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalizeA(a: A): A
Normalize A via a round-trip through B.
- def normalizeB(b: B): B
Normalize B via a round-trip through A.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def reverse: Wedge[B, A]
Swapping
getandreverseGetyields aWedge. - val reverseGet: (B) => A
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])