From: Daniel Bye Date: 2010-07-07T22:24:22+09:00 Subject: Re: New, but this seems odd... --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 07, 2010 at 10:01:35PM +0900, Andrew Wagner wrote: > Ok, granted that I'm pretty new to ruby, but this seems odd to me: >=20 > irb(main):001:0> x =3D [1,2,3] > =3D> [1, 2, 3] > irb(main):002:0> x.delete 2 > =3D> 2 > irb(main):003:0> x > =3D> [1, 3] >=20 > With this behavior, wouldn't "delete!" be a more appropriate name? This came up a few days ago: 9857c220286cc01c05bd3fc163a7654a@ruby-forum.com David A. Black's answer covers it nicely, I think. Dan --=20 Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iEYEARECAAYFAkw0gAAACgkQixf5fBYiFmpF2QCg2aImjkyTCMJnmrBvsPyxz9Vs EcMAnA7alnFHC0YheACKfsL3kjdoG1vQ =D/pp -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--