MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Improper use of slot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58782] Re: Improper use of slot
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Mon, 18 Jul 2005 03:21:20 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 7/17/05 at 3:04 AM, rgwv at rgwv.com (Robert G. Wilson v) wrote:

>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?

Is this what you want?

lst=Table[{n,7},{n,3}];
Binomial@@@lst
--
To reply via email subtract one hundred and four


  • Prev by Date: Validating functions input
  • Next by Date: "2p" in BenchmarkReport[] ?
  • Previous by thread: Re: Improper use of slot
  • Next by thread: How to create a new Form