document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def remove(array,item)
  2.   array.reject { |v| v == item }
  3. end
  4. array = [1,2,3]
  5. print remove(array, 1), "\\n"
  6. # => [2, 3]
  7. print array
');