Skip to content
Mirek Rusin edited this page Oct 5, 2024 · 2 revisions

Home / either

either

References

default

Renames and re-exports either

Functions

either()

function either<A, B>(a, b): Parser<Parsed<A> | Parsed<B>>

Type Parameters

Type Parameter
A extends Liftable
B extends Liftable

Parameters

Parameter Type
a A
b B

Returns

Parser<Parsed<A> | Parsed<B>>

parser matching either a or b.

Defined in

either.ts:6

Clone this wiki locally