On Mon, Apr 27, 2009 at 6:07 PM, Joel VanderWerf
<vjoel / path.berkeley.edu> wrote:
> Sean O'Halpin wrote:
>>
>> In your first example, it would appear that you ~are~ concerned with
>> the return value of the block as you call #whatever on it, so I'd use:
>>
>> =A0arr.sort.tap { |sorted|
>> =A0 =A0p sorted
>> =A0}.whatever=85
>
> Actually, the return value of #tap is different from the return value of =
the
> block (which is ignored by tap, IIRC). That puzzled me for a moment.
>
> --
> =A0 =A0 =A0vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
>

You're right - sloppy wording on my part. But you were only puzzled
for a moment, right? ;)