Files
manolia-alpha/node_modules/fp-ts/lib/ChainRec.js
Robin COuret e0e50af706 init component
2026-02-16 17:28:37 +01:00

15 lines
309 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.tailRec = void 0;
/**
* @since 2.0.0
*/
var tailRec = function (startWith, f) {
var ab = f(startWith);
while (ab._tag === 'Left') {
ab = f(ab.left);
}
return ab.right;
};
exports.tailRec = tailRec;