<div dir="ltr"><div>Yes, mapAdjacent is mentioned in the linked feature request.<br><br></div>But simply importing does not help, because one also need to manage another dependency in the project then. Adding another dependency is a rather big deal, so if one only needs a single, simple function from a package one will have to consider whether to add that dependency or just define the function in the project's utility module. Also one first had to find out about the utility-ht library and its definition of mapAdjacent.<br><br>I am proposing inclusion into base to make it readily available out of the box. I think it would fit rather well together with the other zips in Data.List.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-12 23:01 GMT+02:00 Henning Thielemann <span dir="ltr"><<a href="mailto:lemming@henning-thielemann.de" target="_blank">lemming@henning-thielemann.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On Tue, 12 Apr 2016, Johan Holmquist wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
zipConsecutivesWith :: (a -> a -> b) -> [a] -> [b]<br>
zipConsecutivesWith f xs = zipWith f xs (tail xs)<br>
</blockquote>
<br></span>
I call it mapAdjacent in my utility-ht package:<br>
<a href="http://hackage.haskell.org/package/utility-ht-0.0.11/docs/Data-List-HT.html#v:mapAdjacent" rel="noreferrer" target="_blank">http://hackage.haskell.org/package/utility-ht-0.0.11/docs/Data-List-HT.html#v:mapAdjacent</a><br>
<br>
You could simply import that one.</blockquote></div><br></div>