Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

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