MathGroup Archive 2005

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

Search the Archive

Re: Improper use of slot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58763] Re: Improper use of slot
  • From: "dkr" <dkrjeg at adelphia.net>
  • Date: Sun, 17 Jul 2005 13:03:09 -0400 (EDT)
  • References: <dbd0vm$2s4$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

You want to evaluate the pure function at lst, not map it over lst.

In[1]:=
lst={5,4,3,2};
Binomial[First[#],Last[#]]&[lst]
Out[2]=
10


  • Prev by Date: Re: Modeling and Array Problem
  • Next by Date: Re: Polynomial eigenvalue problem
  • Previous by thread: Re: Improper use of slot
  • Next by thread: Re: Improper use of slot