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!
class Integer def ! (1..self).inject(:*) end end
!3 # => 6 !4 # => 24