From: Adam Prescott Date: 2011-10-05T06:15:02+09:00 Subject: Re: Local vs method vs instance (was: Operator Overloading) --00151747572891e42204ae7f95c1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2011/10/4 Bartosz Dziewo=C5=84ski > >> 5. Stabby Lambda variables > > > > What do you mean by this? > > Regular lambda: a =3D lambda{|x,y| x+y} - it cant have, for example, > default value for arguments. > ? >> l =3D lambda { |x, y=3D2| [x,y] } =3D> # >> l.call(1) =3D> [1, 2] >> RUBY_VERSION =3D> "1.9.2" As far as I know, ->{} is absolutely no different from lambda {}. --00151747572891e42204ae7f95c1--