Open flakey-bit opened 2 years ago
Firstly, thanks for the great library 🙂
It appears that the function returned from Either::liftApAcc closes over leftErrs from the outer scope.
Either::liftApAcc
leftErrs
That effectively means the function returned from Either::liftApAcc is stateful and can't be used more than once.
NB: I noticed while applying your suggestion from https://github.com/emmanueltouzery/prelude-ts/issues/61.
Firstly, thanks for the great library 🙂
It appears that the function returned from
Either::liftApAcc
closes overleftErrs
from the outer scope.That effectively means the function returned from
Either::liftApAcc
is stateful and can't be used more than once.NB: I noticed while applying your suggestion from https://github.com/emmanueltouzery/prelude-ts/issues/61.