Re: Improper use of slot
- To: mathgroup at smc.vnet.net
- Subject: [mg58764] Re: [mg58754] Improper use of slot
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 17 Jul 2005 13:03:10 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
Binomial[First[#],Last[#]]&[lst] Binomial[First[#],Last[#]]&@lst Binomial[First[lst],Last[lst]] Bob Hanlon > > From: "Robert G. Wilson v" <rgwv at rgwv.com> To: mathgroup at smc.vnet.net > Date: 2005/07/17 Sun AM 03:04:04 EDT > Subject: [mg58764] [mg58754] Improper use of slot > > Help, I am trying to 'pipe' into Binomial[] two arguments which are taken from > a list, say lst. I could do something like: > > ... lst= ...; Binomial[ Max[lst], Min[lst]] > > but I was hoping for something a little bit more elegant like: > > Binomial[ Last[#], First[#]] & /@ lst > > but that dog wont hurt. Any suggestions? > > Thank you in advance. > > Bob Wilson. > >