Split up a sequence in same-size(if possible) parts.
Python, 6 lines
It's very straight forward:
It takes a list, re-groups them in another list, 2 items per group. The source list doesn't have to be evenly dividable though:
Of course, a string is a sequence too. That's what I used it for last time. I had a string of bits, which I needed to divide in pieces of 8, bytes: