Stack overflows aside, my question is this: can re...
# announcements
t
Stack overflows aside, my question is this: can recursion inside a
Sequence
flatMap()
be bad for performance when you need to recurse a larger number of items (e.g. 1000, 10000)? Should I be doing a loop with
tailrecur
instead?
k
flatMap
itself is not going to make things much worse, it's literally a for loop that combines lists.
I'm thinking if there's a better way to build the sequence though, righr now it's prettt bad