LoginSignup
0
0

More than 5 years have passed since last update.

[Ruby] `->`記法についての公式説明

Posted at

ruby1.9で導入された->で記述するラムダ記法を説明する公式ドキュメントはココ

->(a,b){ p [a,b] }
Ruby1.9 で導入された lambda の新しい記法。以下と同じ。
lambda{|a, b| p [a, b] }

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0