Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: How to extract functions from a list and call them with any argument?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65954] Re: How to extract functions from a list and call them with any argument?
  • From: "Chris Chiasson" <chris.chiasson at gmail.com>
  • Date: Mon, 24 Apr 2006 06:02:12 -0400 (EDT)
  • References: <e2fkto$bp7$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Dom,

What you're asking for seems really strange to me, but this is one way
to do it... (cut 'n paste for clarity)

TagSetDelayed[funclist,
  funclist[blah_][[i__]],{Sin[x],x^3,Cos[x]^2}[[i]]/.x\[Rule]blah]
funclist[\[Pi]/2][[1]]
funclist[\[Pi]][[{1,2}]]

http://chris.chiasson.name/


  • Prev by Date: Integrate is not additive?
  • Next by Date: Re: matrix operations -- shared data vs copied
  • Previous by thread: Re: How to extract functions from a list and call them with any argument?
  • Next by thread: Re: How to extract functions from a list and call them with any argument?