Say I have the array [1,2,3,1,2,3] and I want to delete the first instance of (say) 2 from the array giving [1,3,1,2,3]. What\'s the e
[1,2,3,1,2,3]
2
[1,3,1,2,3]
Maybe it should become part of stdlib:
class Array def delete_first item delete_at(index(item) || length) end end