import type { ParjsCombinator } from "../parjser"; import { map } from "./map"; /** * Applies the source parser and yields the constant value `result`. * * @param result The constant value to yield. */ export function mapConst(result: T): ParjsCombinator { return map(() => result); }