FYI - the ampersand syntax is only in function calls, so the following will fail:<p><pre><code> &set.call(1)
</code></pre>
Whereas this will not:<p><pre><code> (1..30).select(&set)
</code></pre>
Generally speaking, & is syntactic sugar for .to_proc, but only within function calls.