HaskellStyleMap

parsley.syntax.extension.HaskellStyleMap
final implicit class HaskellStyleMap[-A, +B](val f: A => B) extends AnyVal

This class exposes the <#> combinator on functions.

This extension class operates on functions. It enables the use of the <#> combinator, which is an alias for map designed to more closely mimic Haskell's style.

Value parameters

f

the function that is used for the map.

Attributes

Constructor

This constructor should not be called manually, it is designed to be used via Scala's implicit resolution.

Source
extension.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def <#>(p: Parsley[A]): Parsley[B]

This combinator maps this function over the given parser p to alter its result.

This combinator maps this function over the given parser p to alter its result.

Attributes

See also

map

Source
extension.scala