
12 Apr
2016
12 Apr
'16
5:01 p.m.
On Tue, 12 Apr 2016, Johan Holmquist wrote:
zipConsecutivesWith :: (a -> a -> b) -> [a] -> [b] zipConsecutivesWith f xs = zipWith f xs (tail xs)
I call it mapAdjacent in my utility-ht package: http://hackage.haskell.org/package/utility-ht-0.0.11/docs/Data-List-HT.html#... You could simply import that one.