<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>1. Enumerable#inject doesn't need a block, it actually takes 2 params, a initial value and a symbol as an argument.  Each iteration the symbol is the method that'll be called on the accumulator and passed the current element.  Also if you don't supply an initial element then it'll use the first element of the enumerable.  So you can turn</div>

<div><br></div><div>array.inject(0) {|s, i| s + i}</div><div><br></div><div>into</div><div><br></div><div>array.inject(:+)</div></blockquote><div><br></div><div>Into:</div><div>array.inject :+</div><div><br></div><div>:P </div>
</div>