Open jituanlin opened 3 years ago
Recursive functions are unsafe, this will lead to stack overflows as soon as the number of elements grow
If we can get this as a stack safe operation its more likely to be considered
If we can get this as a stack safe operation its more likely to be considered
it's honestly very hard to do stack safe with decent performance, given the rest of the data types present I don't think it will be in-scope, maybe an observable like impl
It is possible that implement
Stream
in ts?I wrote a demo:
And this is the test:
Stream
is useful for lazy evaluation.If is ok to add it to
fp-ts
, I am happy to make a MR to branchv3.0.0
(give me a chance ,pls :) )