I\'m going crazy: Where is the Ruby function for factorial? No, I don\'t need tutorial implementations, I just want the function from the library. It\'s not in Math!
def factorial(n=0) (1..n).inject(:*) end
factorial(3) factorial(11)