• xigoi
    link
    2
    edit-2
    1 year ago

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