That used to be in Ruby and duplicated the functionality that should be in Array, I moved it (see in array.rb). Probably should have done this separately. Only thing I changed besides the main objective of this PR, promise! :)