Lift8

parsley.syntax.lift.Lift8
final implicit class Lift8[T1, T2, T3, T4, T5, T6, T7, T8, R](f: (T1, T2, T3, T4, T5, T6, T7, T8) => R) extends AnyVal

This class enables the lift syntax on functions of arity eight.

Value parameters

f

the function to apply to the parsers.

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], p2: => Parsley[T2], p3: => Parsley[T3], p4: => Parsley[T4], p5: => Parsley[T5], p6: => Parsley[T6], p7: => Parsley[T7], p8: => Parsley[T8]): Parsley[R]

This combinator executes each of its argument parsers in turn and applies this function to their results.

This combinator executes each of its argument parsers in turn and applies this function to their results.

Each of the given parsers is executed in sequence, each yielding a result. So long as every parser succeeded, the whole combinator succeeds and each of the results is fed into this function. The result of this application is returned by the combinator. If any of the given parsers fails then the whole combinator fails.

Attributes

Returns

a parser that applies this function to the results of all the given parsers.

See also
Source
lift.scala