From: Konrad Meyer Date: 2007-10-05T10:06:15+09:00 Subject: Re: Mapping an object --nextPart2064973.nv492St4da Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Quoth Harnish Botadra: > Hi, >=20 > This is Harnish. I am looking for a way to map an object. >=20 > Ex: >=20 > Instead of doing, >=20 > resultset =3D A.get_arr > result =3D resultset[0].my_obj >=20 >=20 > Can I combine the 2 statements into 1 when I know that my A.get_arr is > sure to return an array with just 1 object. >=20 > Thanks for your help. >=20 > Regards, > Harnish result =3D A.get_arr.first # =3D> First object of A.get_arr's array. =2D-=20 Konrad Meyer http://konrad.sobertillnoon.com/ --nextPart2064973.nv492St4da Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQBHBY4ICHB0oCiR2cwRAlNdAKDFcQBvyyszts3RGszzOAUqv1wfNwCcCRX3 997FoveAApCRf6cADcTK7UA= =Ie66 -----END PGP SIGNATURE----- --nextPart2064973.nv492St4da--