map is a parser combinator that takes a parser
and a mapper function. If the parser succeeds, it maps its
result using the mapper function. You can think of map as a
general map, like for functors, applied to a
parser. Since map itself is a parser, you can use
it in seq or other combinators.
map
is a parser combinator that takes a parser and a mapper function. If the parser succeeds, it maps its result using the mapper function. You can think of map as a generalmap
, like for functors, applied to a parser. Sincemap
itself is a parser, you can use it inseq
or other combinators.