init component
This commit is contained in:
14
node_modules/fp-ts/lib/ChainRec.js
generated
vendored
Normal file
14
node_modules/fp-ts/lib/ChainRec.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user