RouteCommon

abstract class RouteCommon[R <: ([X] =>> RouteCommon[R, X]), A]
class Object
trait Matchable
class Any
class Route[A]
class RouteB[A]

Value members

Abstract methods

def parseThen(f: Option[A] => Option[A]): R[A]
def pmap[B](b: A => Option[B])(a: B => A): R[B]

Prism map.

Prism map.

Some values of A can be turned into a Bs, some fail (in which case the route is considered non-matching).

All Bs can be turned back into As.

Concrete methods

final def const[B](b: B)(implicit ev: ValueOf[A]): R[B]
final def filter(f: A => Boolean): R[A]
final def mapInput[B >: A](f: B => A): R[B]
final def mapParsed[B <: A](f: A => B): R[B]
final def xmap[B](b: A => B)(a: B => A): R[B]

Exponential map.

Exponential map.

Any A can be turned into a B and vice versa.