Join Slack
Powered by
is there a way to get previous item while mapping ...
# stdlib
d
Dias
12/17/2018, 2:44 PM
is there a way to get previous item while mapping through the sequence?
m
marstran
12/17/2018, 2:46 PM
You could use
zipWithNext
to get a sequence of pairs containing adjacent elements.
🤔 1
d
Dias
12/17/2018, 2:48 PM
sounds interesting, will have a look at it, thank you
2
Views
Open in Slack
Previous
Next