четверг, 3 октября 2013 г.

Ruby :: Blocks, Procs, and Lambdas

The -> literal form is a shorter version of Kernel#lambda.

Kernel#proc factory method is identical to Proc.new. Note that proc is a method and not a literal form like -> nor a keyword like yield.

Комментариев нет:

Отправить комментарий