lift
This module provides the "lift
syntax", which enables a lift
combinator on functions
of arities up to 22, applying the function across the results of several parsers.
Attributes
- Since:
3.0.0
- Note:
a limitation of this syntax is that it requires the function's type to be fully known. For a version of this syntax that behaves better with type inference, see
zipped
.- Example:
scala> import parsley.character.char scala> import parsley.implicits.lift.{Lift2, Lift3} scala> case class Add(x: Int, y: Int) scala> val p = Add.lift(char('a') #> 4, char('b') #> 5) scala> p.parse("ab") val res0 = Success(Add(4, 5)) scala> val f = (x: Int, y: Int, z: Int) => x * y + z scala> val q = f.lift(char('a') #> 3, char('b') #> 2, char('c') #> 5) scala> q.parse("abc") val res1 = Success(11) scala> q.parse("ab") val res2 = Failure(..)
- Source:
- lift.scala
- Graph
- Supertypes
- Self type
- lift.type
Members list
Type members
Classlikes
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
Attributes
- x
the value to lift to the parser level.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity one: a flipped map
.
This class enables the lift
syntax on functions of arity one: a flipped map
.
Attributes
- f
the function to apply to the result of the parser.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity ten.
This class enables the lift
syntax on functions of arity ten.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity eleven.
This class enables the lift
syntax on functions of arity eleven.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twelve.
This class enables the lift
syntax on functions of arity twelve.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity thirteen.
This class enables the lift
syntax on functions of arity thirteen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity fourteen.
This class enables the lift
syntax on functions of arity fourteen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity fifteen.
This class enables the lift
syntax on functions of arity fifteen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity sixteen.
This class enables the lift
syntax on functions of arity sixteen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity seventeen.
This class enables the lift
syntax on functions of arity seventeen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity eighteen.
This class enables the lift
syntax on functions of arity eighteen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity nineteen.
This class enables the lift
syntax on functions of arity nineteen.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity two.
This class enables the lift
syntax on functions of arity two.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twenty.
This class enables the lift
syntax on functions of arity twenty.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twenty-one.
This class enables the lift
syntax on functions of arity twenty-one.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity twenty-two.
This class enables the lift
syntax on functions of arity twenty-two.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity three.
This class enables the lift
syntax on functions of arity three.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity four.
This class enables the lift
syntax on functions of arity four.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity five.
This class enables the lift
syntax on functions of arity five.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity six.
This class enables the lift
syntax on functions of arity six.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity seven.
This class enables the lift
syntax on functions of arity seven.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity eight.
This class enables the lift
syntax on functions of arity eight.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
This class enables the lift
syntax on functions of arity nine.
This class enables the lift
syntax on functions of arity nine.
Attributes
- f
the function to apply to the parsers.
- 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 AnyValtrait Matchableclass Any
Implicits
Implicits
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
This class enables the lift
syntax on any value, which functions as pure
as a postfix method.
Attributes
- x
the value to lift to the parser level.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity one: a flipped map
.
This class enables the lift
syntax on functions of arity one: a flipped map
.
Attributes
- f
the function to apply to the result of the parser.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity ten.
This class enables the lift
syntax on functions of arity ten.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity eleven.
This class enables the lift
syntax on functions of arity eleven.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity twelve.
This class enables the lift
syntax on functions of arity twelve.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity thirteen.
This class enables the lift
syntax on functions of arity thirteen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity fourteen.
This class enables the lift
syntax on functions of arity fourteen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity fifteen.
This class enables the lift
syntax on functions of arity fifteen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity sixteen.
This class enables the lift
syntax on functions of arity sixteen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity seventeen.
This class enables the lift
syntax on functions of arity seventeen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity eighteen.
This class enables the lift
syntax on functions of arity eighteen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity nineteen.
This class enables the lift
syntax on functions of arity nineteen.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity two.
This class enables the lift
syntax on functions of arity two.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity twenty.
This class enables the lift
syntax on functions of arity twenty.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity twenty-one.
This class enables the lift
syntax on functions of arity twenty-one.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity twenty-two.
This class enables the lift
syntax on functions of arity twenty-two.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity three.
This class enables the lift
syntax on functions of arity three.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity four.
This class enables the lift
syntax on functions of arity four.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity five.
This class enables the lift
syntax on functions of arity five.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity six.
This class enables the lift
syntax on functions of arity six.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity seven.
This class enables the lift
syntax on functions of arity seven.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity eight.
This class enables the lift
syntax on functions of arity eight.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala
This class enables the lift
syntax on functions of arity nine.
This class enables the lift
syntax on functions of arity nine.
Attributes
- f
the function to apply to the parsers.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- lift.scala