Provides pred as the opposite of succ.
3.pred(2) #=> 1
CREDIT: Trans
[Source]
# File lib/more/facets/succ.rb, line 19 19: def pred(n=1) 20: self - n 21: end
Allows succ to take n increments.
3.succ(2) #=> 5
# File lib/more/facets/succ.rb, line 9 9: def succ(n=1) 10: self + n 11: end
[Validate]