Add traverseWithIndex to Data.Sequence
John Wiegley
johnw at newartisans.com
Wed Jan 20 07:22:14 UTC 2016
>>>>> David Feuer <david.feuer at gmail.com> 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.
+1
--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2
More information about the Libraries
mailing list