Proposal: Add functions to get consecutive elements to Data.List

Joachim Breitner mail at joachim-breitner.de
Wed Apr 13 10:21:52 UTC 2016


Hi,

Am Mittwoch, den 13.04.2016, 10:23 +0200 schrieb Frerich Raabe:
> For what it's worth, the function for combining adjacent elements is 
> sometimes called 'pairwise' in Python, maybe based on this list of
> recipes:
> 
>    https://docs.python.org/2/library/itertools.html#recipes
> 
> Maybe that's a viable naming alternative?

thanks for digging that up. It’s worth considering, and has a more
pleasant tone to it. OTOH "pairwise" could maybe more likely be thought
to mean [(x1,x2),(x3,x4),..]

Greetings,
Joachim

-- 
Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttps://www.joachim-breitner.de/
  XMPP: nomeata at joachim-breitner.de • OpenPGP-Key: 0xF0FBF51F
  Debian Developer: nomeata at debian.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20160413/c204b2d7/attachment.sig>


More information about the Libraries mailing list