UNPKG

parjs

Version:

Library for building parsers using combinators.

14 lines 398 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mapConst = void 0; const map_1 = require("./map"); /** * Applies the source parser and yields the constant value `result`. * * @param result The constant value to yield. */ function mapConst(result) { return (0, map_1.map)(() => result); } exports.mapConst = mapConst; //# sourceMappingURL=mapConst.js.map