Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/applicative_parser/mod.ts>RMap

parser combinators applicative TypeScript deno module
Latest
function RMap
import { RMap } from "https://deno.land/x/applicative_parser@1.0.23/mod.ts";

RMap applies the map function to the result of running the parser argument.

This is where the constuction of any output data structures occurs, for example building an abstract syntax tree node from the results of a parser.

Parameters

map: (_: C) => B
parser: Parser<A, C>