I am trying to name what I think is a new idea for a higher-order function. To the important part, here is the code in Python and Haskell to demonstrate the concept, which will
Since it's similar to "fold" but doesn't collapse the list into a single value, how about "crease"? If you keep "creasing", you end up "folding" (sort of).
We could go with a cooking metaphor and call it "pinch", like pinching the crust of a pie, though this might suggest a circular zipping, where the last element of the list is paired with the first.
def pinch(f, l):
return map(lambda t: f(*t), zip(l, l[1:]+l[:1]))
(If you only like one of "crease" or "pinch", please note so as a comment. Should these be separate suggestions?)