Randy Kramer wrote:
> 
> I'm not clear on what binding tighter means, or to what--any further hints 
> appreciated.

What he means is, it's a matter of precedence.

Observe the examples:

   puts %w{cat bat rat}.map { |w| w.capitalize }

   puts %w{cat bat rat}.map do |w|
     w.capitalize
   end

They mean essentially the same as:

   puts(%w{cat bat rat}.map { |w| w.capitalize })

   puts(%w{cat bat rat}.map) do |w|
     w.capitalize
   end

In the second one, the map doesn't have a block associated with it --
the block is associated with the puts instead. The map with the
empty block effectively does nothing, and the puts never calls the
block given to it.


Help any?


Hal