Re: Can anybody help?
- To: mathgroup at smc.vnet.net
- Subject: [mg63637] Re: Can anybody help?
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Sun, 8 Jan 2006 03:33:01 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
On 1/7/06 at 2:29 AM, plizak at gmail.com (plizak) wrote: >It boggles my mind that some people call that code elegant. >Short, yes, elegant, no. It is far from intuitive to know what >Position[v1, #1]&/@v3 does. Anyone care to enlighten me? The '&' character makes Position[v1, #1]& a pure function that computes the position of in v1 of each argument represented by #1. The /@ says to map this pure function to each of the elements of v3. So, the net result is to return a list of positions in v1 for each element of v3. -- To reply via email subtract one hundred and four