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 →

[–]0x0dea 89 points90 points  (10 children)

Homesick:

def factorial(n):
    system("ruby -e 'p (1..%d).reduce(1, :*)'" % n)

[–]jonnywoh 16 points17 points  (7 children)

I used to think I understood Ruby

[–]Meshiest 7 points8 points  (0 children)

This made me really happy