~/

Entries from 2013-04-05 to 1 day

Proc and ===

even = ->(x) { (x % 2) == 0 } # we can use Proc#call even.call(2) even.call(3) # also available to use ===, instead of using Proc#call even === 2 even === 3 # we can use === in case statement as well. fizzbuzz = ->(x) { (x % 3) == 0 && (x …