Lift1

parsley.implicits.lift$.Lift1
final implicit class Lift1[T1, R](f: T1 => R) extends AnyVal

This class enables the lift syntax on functions of arity one: a flipped map.

Value parameters

f

the function to apply to the result of the parser.

Attributes

Constructor

This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

Source
lift.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

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 map combinator, this exists for consistency with the other arity lifters.

Attributes

Returns

a parser that applies this function the result of the given parser.

See also
Source
lift.scala