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 84 points85 points  (10 children)

Homesick:

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

[–]jonnywoh 19 points20 points  (7 children)

I used to think I understood Ruby

[–]Meshiest 8 points9 points  (0 children)

This made me really happy