class Pattern[I, X[_]] extends AnyRef
The splitting part of a junction, pattern matching and splitting to a given shape. Crucially, the shape X[_] is determined, so junctions can be built from this, after possibly mapping.
- Alphabetic
- By Inheritance
- Pattern
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Pattern(split: (I) => Option[X[I]])(implicit arg0: Traverse[X])
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): (Pattern[I, X], B)
- def :>>[O](build: (X[I], X[O]) => Option[O]): MixedJunction[I, O, X]
- def :>>>[O](build: (X[I], X[O]) => O): MixedJunction[I, O, X]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >>[O](build: (X[O]) => Option[O]): Junction[I, O, X]
- def >>>[O](build: (X[O]) => O): Junction[I, O, X]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def ensuring(cond: (Pattern[I, X]) => Boolean, msg: => Any): Pattern[I, X]
- def ensuring(cond: (Pattern[I, X]) => Boolean): Pattern[I, X]
- def ensuring(cond: Boolean, msg: => Any): Pattern[I, X]
- def ensuring(cond: Boolean): Pattern[I, X]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def join[O](build: (X[O]) => Option[O]): Junction[I, O, X]
- def joinStrict[O](build: (X[O]) => O): Junction[I, O, X]
- def map[J](f: (I) => I): Pattern[I, X]
- def mixedJoin[O](build: (X[I], X[O]) => Option[O]): MixedJunction[I, O, X]
- def mixedJoinStrict[O](sbuild: (X[I], X[O]) => O): MixedJunction[I, O, X]
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(x: I): Option[X[I]]
- 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: Pattern[I, X]): Pattern.OrElse[I, [_]X[_]]
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- def →[B](y: B): (Pattern[I, X], B)
- Implicit
- This member is added by an implicit conversion from Pattern[I, X] toArrowAssoc[Pattern[I, X]] 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.