From: Tony Arcieri Date: 2013-07-23T05:26:37+09:00 Subject: Re: tap { break } idiom deserves its own Kernel method? --001a11c2bfbe2d8a2b04e21f7e97 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Jul 22, 2013 at 10:37 AM, Andy Lowry wrote: > I use this idiom from time to time: > > x = expr.tap{|value| break expr-involving-value)} > How is this any different than: x = expr-involving-value ? -- Tony Arcieri --001a11c2bfbe2d8a2b04e21f7e97 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Mon, Jul 22, 2013 at 10:37 AM, Andy Lowry <lists@ru= by-forum.com> wrote:
I use this idiom from time to time:

=A0 x =3D expr.tap{|value| break expr-involving-value)}

How is this any different than:

= =A0 =A0 x =3D expr-involving-value
=A0
?

=
--
Tony Arcieri
--001a11c2bfbe2d8a2b04e21f7e97--