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
- def apply[I, X[_]](split: (I) => Option[X[I]])(implicit arg0: Traverse[X]): Pattern[I, X]
- 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 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.
- def partial[I, X[_]](split: PartialFunction[I, X[I]])(implicit arg0: Traverse[X]): Pattern[I, X]
pattern from a partial function
- object PolyPattern