A
Andrew Wagner
[Note: parts of this message were removed to make it a legal post.]
Ok, granted that I'm pretty new to ruby, but this seems odd to me:
irb(main):001:0> x = [1,2,3]
=> [1, 2, 3]
irb(main):002:0> x.delete 2
=> 2
irb(main):003:0> x
=> [1, 3]
With this behavior, wouldn't "delete!" be a more appropriate name?
Ok, granted that I'm pretty new to ruby, but this seems odd to me:
irb(main):001:0> x = [1,2,3]
=> [1, 2, 3]
irb(main):002:0> x.delete 2
=> 2
irb(main):003:0> x
=> [1, 3]
With this behavior, wouldn't "delete!" be a more appropriate name?