init component
This commit is contained in:
10
node_modules/fp-ts/es6/ChainRec.js
generated
vendored
Normal file
10
node_modules/fp-ts/es6/ChainRec.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* @since 2.0.0
|
||||
*/
|
||||
export var tailRec = function (startWith, f) {
|
||||
var ab = f(startWith);
|
||||
while (ab._tag === 'Left') {
|
||||
ab = f(ab.left);
|
||||
}
|
||||
return ab.right;
|
||||
};
|
||||
Reference in New Issue
Block a user