Add traverseWithIndex to Data.Sequence

John Wiegley johnw at
Wed Jan 20 07:22:14 UTC 2016

>>>>> David Feuer <david.feuer at> writes:

> I just realized there *is* a way to implement traverseWithIndex reasonably
> efficiently with the current interface:

> traverseWithIndex f = sequenceA . mapWithIndex f

> I still think it's a good thing to add though.


John Wiegley                  GPG fingerprint = 4710 CF98 AF9B 327B B80F                          60E1 46C4 BD1A 7AC1 4BA2

More information about the Libraries mailing list