zipped
This module provides alternatives to the f.lift(x, y)
syntax, (x, y).zipped(f)
, which works better with type inference.
Also enables a parameterless zipped
method, to pair an arbitrary number of parsers such that (p, q).zipped = p.zip(q)
.
Thanks to Andrei Gramescu and George Stacey for ensuring that these combinators even exist in the first place.
Attributes
- Since:
3.0.0
- Note:
these methods are not lazy like the
lift
syntax orliftN
functions! Use the prefix~
combinator to make arguments lazy where necessary.- Example:
scala> import parsley.character.char scala> import parsley.implicits.zipped.{Zipped2, Zipped3} scala> case class Add(x: Int, y: Int) scala> val p = (char('a') #> 4, char('b') #> 5).zipped(Add) scala> p.parse("ab") val res0 = Success(Add(4, 5)) scala> val q = (char('a') #> 3, char('b') #> 2, char('c') #> 5).zipped((x, y, z) => x * y + z) scala> q.parse("abc") val res1 = Success(11) scala> q.parse("ab") val res2 = Failure(..)
- Source:
- zipped.scala
- Graph
- Supertypes
- Self type
- zipped.type
Members list
Type members
Classlikes
This class enables the zipped
syntax on tuples of ten parsers.
This class enables the zipped
syntax on tuples of ten parsers.
Attributes
- t
the ten parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of eleven parsers.
This class enables the zipped
syntax on tuples of eleven parsers.
Attributes
- t
the eleven parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of twelve parsers.
This class enables the zipped
syntax on tuples of twelve parsers.
Attributes
- t
the twelve parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of thirteen parsers.
This class enables the zipped
syntax on tuples of thirteen parsers.
Attributes
- t
the thirteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of fourteen parsers.
This class enables the zipped
syntax on tuples of fourteen parsers.
Attributes
- t
the fourteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of fifteen parsers.
This class enables the zipped
syntax on tuples of fifteen parsers.
Attributes
- t
the fifteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of sixteen parsers.
This class enables the zipped
syntax on tuples of sixteen parsers.
Attributes
- t
the sixteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of seventeen parsers.
This class enables the zipped
syntax on tuples of seventeen parsers.
Attributes
- t
the seventeen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of eighteen parsers.
This class enables the zipped
syntax on tuples of eighteen parsers.
Attributes
- t
the eighteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of nineteen parsers.
This class enables the zipped
syntax on tuples of nineteen parsers.
Attributes
- t
the nineteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on pairs of two parsers.
This class enables the zipped
syntax on pairs of two parsers.
Attributes
- t
the two parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of twenty parsers.
This class enables the zipped
syntax on tuples of twenty parsers.
Attributes
- t
the twenty parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of twenty-one parsers.
This class enables the zipped
syntax on tuples of twenty-one parsers.
Attributes
- t
the twenty-one parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of twenty-two parsers.
This class enables the zipped
syntax on tuples of twenty-two parsers.
Attributes
- t
the twenty-two parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of three parsers.
This class enables the zipped
syntax on tuples of three parsers.
Attributes
- t
the three parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of four parsers.
This class enables the zipped
syntax on tuples of four parsers.
Attributes
- t
the four parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of five parsers.
This class enables the zipped
syntax on tuples of five parsers.
Attributes
- t
the five parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of six parsers.
This class enables the zipped
syntax on tuples of six parsers.
Attributes
- t
the six parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of seven parsers.
This class enables the zipped
syntax on tuples of seven parsers.
Attributes
- t
the seven parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of eight parsers.
This class enables the zipped
syntax on tuples of eight parsers.
Attributes
- t
the eight parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
This class enables the zipped
syntax on tuples of nine parsers.
This class enables the zipped
syntax on tuples of nine parsers.
Attributes
- t
the nine parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
- Graph
- Supertypes
- class AnyValtrait Matchableclass Any
Implicits
Implicits
This class enables the zipped
syntax on tuples of ten parsers.
This class enables the zipped
syntax on tuples of ten parsers.
Attributes
- t
the ten parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of eleven parsers.
This class enables the zipped
syntax on tuples of eleven parsers.
Attributes
- t
the eleven parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of twelve parsers.
This class enables the zipped
syntax on tuples of twelve parsers.
Attributes
- t
the twelve parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of thirteen parsers.
This class enables the zipped
syntax on tuples of thirteen parsers.
Attributes
- t
the thirteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of fourteen parsers.
This class enables the zipped
syntax on tuples of fourteen parsers.
Attributes
- t
the fourteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of fifteen parsers.
This class enables the zipped
syntax on tuples of fifteen parsers.
Attributes
- t
the fifteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of sixteen parsers.
This class enables the zipped
syntax on tuples of sixteen parsers.
Attributes
- t
the sixteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of seventeen parsers.
This class enables the zipped
syntax on tuples of seventeen parsers.
Attributes
- t
the seventeen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of eighteen parsers.
This class enables the zipped
syntax on tuples of eighteen parsers.
Attributes
- t
the eighteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of nineteen parsers.
This class enables the zipped
syntax on tuples of nineteen parsers.
Attributes
- t
the nineteen parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on pairs of two parsers.
This class enables the zipped
syntax on pairs of two parsers.
Attributes
- t
the two parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of twenty parsers.
This class enables the zipped
syntax on tuples of twenty parsers.
Attributes
- t
the twenty parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of twenty-one parsers.
This class enables the zipped
syntax on tuples of twenty-one parsers.
Attributes
- t
the twenty-one parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of twenty-two parsers.
This class enables the zipped
syntax on tuples of twenty-two parsers.
Attributes
- t
the twenty-two parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of three parsers.
This class enables the zipped
syntax on tuples of three parsers.
Attributes
- t
the three parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of four parsers.
This class enables the zipped
syntax on tuples of four parsers.
Attributes
- t
the four parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of five parsers.
This class enables the zipped
syntax on tuples of five parsers.
Attributes
- t
the five parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of six parsers.
This class enables the zipped
syntax on tuples of six parsers.
Attributes
- t
the six parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of seven parsers.
This class enables the zipped
syntax on tuples of seven parsers.
Attributes
- t
the seven parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of eight parsers.
This class enables the zipped
syntax on tuples of eight parsers.
Attributes
- t
the eight parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala
This class enables the zipped
syntax on tuples of nine parsers.
This class enables the zipped
syntax on tuples of nine parsers.
Attributes
- t
the nine parsers whose results should be zipped together.
- Constructor:
This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.
- Source:
- zipped.scala