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.
mapis 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. Sincemapitself is a parser, you can use it inseqor other combinators.