• xigoi@lemmy.sdf.org
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

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