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

x/applicative_parser/mod.ts>Cartesian

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

Cartesian runs the first parser, and then if it succeeds, runs the second parser. The first and second parsers can be different types.

This allows the results of two parsers to be combined together into a single result.

Parameters

first: Parser<A, C>
second: Parser<B, D>

Returns

Parser<[A, B], [C, D]>