# oleganza # Actually, Number == 0, but 0 ! message caches receiver inside itself, # so this trick works, but depends on implementation (thus, not recommended). Number ! := method(self * (self - 1)!) 0 ! := 1 Io> 5! ==> 120 |
# oleganza # Actually, Number == 0, but 0 ! message caches receiver inside itself, # so this trick works, but depends on implementation (thus, not recommended). Number ! := method(self * (self - 1)!) 0 ! := 1 Io> 5! ==> 120 |