Lift1

parsley.syntax.Lift1
final class Lift1[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

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