In Haskell, you could do something like map (\(thisItem, nextItem) -> …) (zip list (tail list))
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
In Haskell, you could do something like map (\(thisItem, nextItem) -> …) (zip list (tail list))