All Downloads are FREE. Search and download functionalities are using the official Maven repository.

app.tulz.tuplez.parse.ParserOps.scala Maven / Gradle / Ivy

The newest version!
package app.tulz.tuplez.parse

import cats.parse._
import app.tulz.tuplez.Composition

class ParserOps[A](underlying: Parser[A]) {

  def ~~[B](that: Parser0[B])(implicit composition: Composition[A, B]): Parser[composition.Composed] =
    Parser.product10(underlying, that).map { case (a, b) => composition.compose(a, b) }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy