case class Junction[I, O, X[_], Ctx[_, _], Y[_], Z[_]](split: (Ctx[I, O]) => (X[I]) => Option[Y[I]], build: (Ctx[I, O]) => (Y[O]) => Option[X[O]])(implicit evidence$19: Traverse[Z], incl: Inclusion[Y, [A]Z[X[A]]], rest: OptRestriction[Y, [A]Z[X[A]]]) extends ContextTranslator[I, O, X, Ctx] with Product with Serializable
A junction given by splitting optionally to a given shape, and building from the same shape.
The shape is functorial, typically made of tuples and lists, and Option gives a natural transformation. These allow applying the recursive translator on the components.
- Alphabetic
- By Inheritance
- Junction
- Serializable
- Product
- Equals
- ContextTranslator
- Function1
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Junction(split: (Ctx[I, O]) => (X[I]) => Option[Y[I]], build: (Ctx[I, O]) => (Y[O]) => Option[X[O]])(implicit arg0: Traverse[Z], incl: Inclusion[Y, [A]Z[X[A]]], rest: OptRestriction[Y, [A]Z[X[A]]])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Junction[I, O, X, Ctx, Y, Z], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addJunction[Y[_], Z[_]](split: (Ctx[I, O]) => (X[I]) => Option[Y[I]], build: (Ctx[I, O]) => (Y[O]) => Option[X[O]])(implicit arg0: Traverse[Z], incl: Inclusion[Y, [A]Z[X[A]]], rest: OptRestriction[Y, [A]Z[X[A]]]): OrElse[I, O, [_]X[_], [_, _]Ctx[_, _]]
- Definition Classes
- ContextTranslator
- def addJunction1[Y[_], Z[_]](split: PartialFunction[X[I], Y[I]], build: PartialFunction[Y[O], X[O]])(implicit arg0: Traverse[Z], incl: Inclusion[Y, [A]Z[X[A]]], rest: OptRestriction[Y, [A]Z[X[A]]]): OrElse[I, O, [_]X[_], [_, _]Ctx[_, _]]
- Definition Classes
- ContextTranslator
- def andThen[A](g: ((X[I]) => Option[X[O]]) => A): (Ctx[I, O]) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(ctx: Ctx[I, O]): (X[I]) => Option[X[O]]
- Definition Classes
- ContextTranslator → Function1
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val build: (Ctx[I, O]) => (Y[O]) => Option[X[O]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compose[A](g: (A) => Ctx[I, O]): (A) => (X[I]) => Option[X[O]]
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def ensuring(cond: (Junction[I, O, X, Ctx, Y, Z]) => Boolean, msg: => Any): Junction[I, O, X, Ctx, Y, Z]
- def ensuring(cond: (Junction[I, O, X, Ctx, Y, Z]) => Boolean): Junction[I, O, X, Ctx, Y, Z]
- def ensuring(cond: Boolean, msg: => Any): Junction[I, O, X, Ctx, Y, Z]
- def ensuring(cond: Boolean): Junction[I, O, X, Ctx, Y, Z]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def flip: (Z[Option[X[O]]]) => Option[Z[X[O]]]
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def recTranslate(leafMap: => (Ctx[I, O]) => (X[I]) => Option[X[O]]): (Ctx[I, O]) => (X[I]) => Option[X[O]]
- Definition Classes
- Junction → ContextTranslator
- val split: (Ctx[I, O]) => (X[I]) => Option[Y[I]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- 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])
- def ||(that: ContextTranslator[I, O, X, Ctx]): OrElse[I, O, [_]X[_], [_, _]Ctx[_, _]]
- Definition Classes
- ContextTranslator
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (Junction[I, O, X, Ctx, Y, Z], B)
- Implicit
- This member is added by an implicit conversion from Junction[I, O, X, Ctx, Y, Z] toArrowAssoc[Junction[I, O, X, Ctx, Y, Z]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.