From: Matt Armstrong Date: 2001-12-01T03:21:06+09:00 Subject: [ruby-talk:27102] Re: Using Enumerable ts writes: >>>>>> "M" == Matt Armstrong writes: > > M> Does the number of arguments used in the block (|i| -vs- |a,b|) change > M> the way yield calls the block? > > No, the the number of arguments used in the block (|i| -vs- |a,b|) change > the *interpretation* of the arguments > > With |i| all arguments are in an Array > With |a, b| only the first two arguments are stored in a, b Yes, thanks. As David said, "puts" is a bad way to print out test values -- using "p value" or "puts value.inspect" is less confusing. -- matt