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

x/lambdapi/src/deps.ts>OneOf

Deno TypeScript implementation of LambdaPi interpreter from "A Tutorial Implementation of a Dependently Typed Lambda Calculus" https://www.andres-loeh.de/LambdaPi/
Latest
function OneOf
import { OneOf } from "https://deno.land/x/lambdapi@v1.0.1/src/deps.ts";

OneOf parser consumes one character if it is in the oneOf string argument or fails.

Type Parameters

A
optional
B = string

Parameters

oneOf: string

Returns

Parser<A, string>