tag:blogger.com,1999:blog-68407072024-02-20T17:48:07.626-05:00Pondering 42 in Finite StatesYet another blog, by yet another person, <br>
about programming, software, and other random things.FiniteState42ihttp://www.blogger.com/profile/14945263662731074371noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6840707.post-90823149812718991012008-07-20T23:30:00.014-04:002012-11-11T16:19:13.266-05:00Groupsofn, itertools grouper Recipe, and PaddingThis post is a moron's attempt to understand something that most others take for granted, a recipe given in the itertools documentation. This is not a solution to any real problem.Groups of nGroups of n is a function that takes an iterable and returns n consecutive elements from that iterable.I needed something like this, while I was trying to convert a rather silly ID-generation function FiniteState42ihttp://www.blogger.com/profile/14945263662731074371noreply@blogger.com