you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 3 years ago*

In Haskell, you could do something like map (\(thisItem, nextItem) -> …) (zip list (tail list))

  • source
  • parent