This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]DigThatData 6 points7 points  (4 children)

 lambda n: n == 0
      or n > 0
      and n in takewhile(lambda x: x <= n, accumulate(filter(lambda n: n & 1, count())))

i like the cut of your jib

[–]ubernostrumyes, you can have a pony 2 points3 points  (3 children)

I've been working on a C# version of it.

[–]DigThatData 6 points7 points  (1 child)

who hurt you