prelude-ts
prelude-ts copied to clipboard
Function returned from Either::liftApAcc closes over leftErrs from the outer scope
Firstly, thanks for the great library 🙂
It appears that the function returned from Either::liftApAcc
closes over leftErrs
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.