Re: List of position-specifying functions
- To: mathgroup at smc.vnet.net
- Subject: [mg102388] Re: List of position-specifying functions
- From: dr DanW <dmaxwarren at gmail.com>
- Date: Fri, 7 Aug 2009 05:32:42 -0400 (EDT)
- References: <h5ebj8$1s5$1@smc.vnet.net>
You almost had it: In[4]:= Function[p, #[[p]] &] /@ plist Out[4]= {#1[[2]] &, #1[[5]] &, #1[[4]] &, #1[[6]] &, #1[[3]] &} I suspect that you were getting tangled up in nesting the # and & function notation. By making the outer Function[] explicit, you can disambiguate the situation. I use this technique of using two different notations a lot when I am faced with this kind of introspective problem. Daniel