Is there a way to perform a `fold` and access the ...
# announcements
s
Is there a way to perform a
fold
and access the intermediate values?
i
Looks like `scan`: https://youtrack.jetbrains.com/issue/KT-7657 Could you share your use case there?
s
Yup, exactly that. My use case is the same as Andy Bowes'; it came up during advent of code (mapping a list of steps to create the entire path, not just the end location)