object Pattern
- Alphabetic
- By Inheritance
- Pattern
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class OrElse[I, X[_]](first: Pattern[I, X], second: Pattern[I, X])(implicit evidence$9: Traverse[X]) extends Pattern[I, X] with Product with Serializable
Tries the first translator at top level, then the second.
Tries the first translator at top level, then the second. Is recursive.
- class Partial[I, X[_]] extends Pattern[I, X]
pattern as a class from a partial function - defined as a class to allow inheritance
- class PolyPattern[I, X[_]] extends AnyRef
like a Pattern but with multiple matches possible
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 apply[I, X[_]](split: (I) => Option[X[I]])(implicit arg0: Traverse[X]): Pattern[I, X]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def cast[I, X[_]](split: (I) => Option[Any])(implicit arg0: Traverse[X]): Pattern[I, X]
Given shape and Input type, builds a junction from a split whose output is _a priori_ of the wrong type.
Given shape and Input type, builds a junction from a split whose output is _a priori_ of the wrong type. The shape X[_] must be specified.
- def check[I](p: (I) => Boolean): Pattern[I, Un]
pattern by checking condition, returns optional Unit
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter[I](p: (I) => Boolean): Pattern[I, Id]
filtered pattern
- def fromMatcher[I, X[_], S](matcher: (I) => Option[Map[S, I]], varword: X[S])(implicit arg0: Traverse[X]): Pattern[I, X]
Builds a splitter from a word of a given shape, and a map that matches and returns the image of an element.
Builds a splitter from a word of a given shape, and a map that matches and returns the image of an element. This is problematic if lists should be returned.
- 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
- 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 partial[I, X[_]](split: PartialFunction[I, X[I]])(implicit arg0: Traverse[X]): Pattern[I, X]
pattern from a partial function
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- 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])
- object PolyPattern
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated