You would have to do "if index == 0" with `flatMap...
# stdlib
m
You would have to do "if index == 0" with
flatMap
. Reduce might be better for you.