import { map } from "https://deno.land/x/pazza@v0.3.0/mod.ts";
Execute the embedded parser. If it succeeds, apply provided function on the output.
const parser = map(digit(), value => Number.parseInt(value));
parser("5").output === 5;
import { map } from "https://deno.land/x/pazza@v0.3.0/mod.ts";
Execute the embedded parser. If it succeeds, apply provided function on the output.
const parser = map(digit(), value => Number.parseInt(value));
parser("5").output === 5;