Ruby we might Miss

Posted on August 9, 2011

0


This is the continuation part of the series I started.
The topic for this post :

Proc

——————————————————————————————————————
• Proc#[] is shorthand for Proc.call.
p = lambda{|x| x * 2}
p[3] # => 6
——————————————————————————————————————

Advertisements
Posted in: Ruby