HaskellStyleMap

parsley.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.

Attributes

f

the function that is used for the map.

Constructor:

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

Version:

4.0.0

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

Members list

Concise view

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:
Source:
extension.scala