Jacob Carlborg wrote:
On 2011-02-04 08:34, Jonathan M Davis wrote:Slices: just one more reason why D's arrays kick the pants of other languages'arrays...- Jonathan M DavisRuby has array slices as well. A slice of an array refers to the original data just like in D. But on the other hand a new instance is created when making a slice (I assume, since everything is an object in Ruby).
Can you use an array slice in ruby as an argument to any function that takes a string?