From: Chad Perrin Date: 2010-08-22T01:40:23+09:00 Subject: Re: A small problem for arrays --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 22, 2010 at 01:00:54AM +0900, Unc88 Unc88 wrote: > Can do the subtraction of arrays without using the operator "-"? > Is there a standard method in the class Array? The method is `-`, and using it as an infix operator is just syntactic sugar. If you want it to look like standard .method syntax, do this: > ar_3 =3D ar_1.-(ar_2) =3D> [1, 2, 3, 8, 9, 10] Of course, the parentheses are optional: > ar_3 =3D ar_1.- ar_2 =3D> [1, 2, 3, 8, 9, 10] --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkxwANUACgkQ9mn/Pj01uKUhpgCdHiyVHUXNGRcL80Pvb3M6CLD4 M+0An08eb3dsxJ3u6uJoFrLyy4mOgkQ8 =fGRW -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--