Join Slack
Powered by
Is there a way to perform a `fold` and access the ...
# announcements
s
stkent
12/11/2017, 4:13 PM
Is there a way to perform a
fold
and access the intermediate values?
i
ilya.gorbunov
12/11/2017, 6:32 PM
Looks like `scan`:
https://youtrack.jetbrains.com/issue/KT-7657
Could you share your use case there?
s
stkent
12/11/2017, 6:38 PM
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)
Open in Slack
Previous
Next