implicit final class Lift1[T1, R] extends AnyVal
This class enables the lift syntax on functions of arity one: a flipped map.
- Source
- lift.scala
- Alphabetic
- By Inheritance
- Lift1
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Lift1(f: (T1) => R)
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- f
the function to apply to the result of the parser.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lift(p1: Parsley[T1]): Parsley[R]
This combinator maps this function over the result of the given parser
p1.This combinator maps this function over the result of the given parser
p1.Acting as a flipped version of the regular
mapcombinator, this exists for consistency with the other arity lifters.- returns
a parser that applies this function the result of the given parser.
- See also
- def toString(): String
- Definition Classes
- Any