« Verbs in REST | Main | Queues are Databases? »

Ruby's partition

A very nice little function from the Python Cookbook: group and partition. These functions really ought to be in itertools (and IMO everything in itertools ought to be in builtins).

Just another example of how Ruby and Python are far more similar than different :)

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)