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
——————————————————————————————————————
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
——————————————————————————————————————