implicit final class ParserFlatten[In, A, F[_]] extends AnyVal
- Source
- Parser.scala
- Grouped
- Alphabetic
- By Inheritance
- ParserFlatten
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toany2stringadd[ParserFlatten[In, A, F]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (ParserFlatten[In, A, F], B)
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toArrowAssoc[ParserFlatten[In, A, F]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ensuring(cond: (ParserFlatten[In, A, F]) => Boolean, msg: => Any): ParserFlatten[In, A, F]
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toEnsuring[ParserFlatten[In, A, F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (ParserFlatten[In, A, F]) => Boolean): ParserFlatten[In, A, F]
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toEnsuring[ParserFlatten[In, A, F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): ParserFlatten[In, A, F]
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toEnsuring[ParserFlatten[In, A, F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): ParserFlatten[In, A, F]
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toEnsuring[ParserFlatten[In, A, F]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def flatten(implicit F: FlatMap[F]): Parser[In, F[A]]
Convenience for
.map(_.flatten)
, e.g.Convenience for
.map(_.flatten)
, e.g. to simplify aParser[In, Option[Option[Out]]
toParser[In, Option[Out]]
.Example:
Splitter.json(...).asNullable[String].parseFirstOpt.flatten
- F
A type constructor that can be
flatMap
ped, such as Option or List- returns
A new Parser whose output type has been flattened
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Any
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toStringFormat[ParserFlatten[In, A, F]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (ParserFlatten[In, A, F], B)
- Implicit
- This member is added by an implicit conversion from ParserFlatten[In, A, F] toArrowAssoc[ParserFlatten[In, A, F]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.