MathGroup Archive 2005

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

Search the Archive

Re: Improper use of slot


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