MathGroup Archive 1999

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

Search the Archive

Re: List of function-heads

  • To: mathgroup at
  • Subject: [mg17076] Re: List of function-heads
  • From: dreeves at (Daniel Reeves)
  • Date: Sat, 17 Apr 1999 03:34:49 -0400
  • References: <7f1g3u$>
  • Sender: owner-wri-mathgroup at

> In[1]:=fl=Table[a[i][x_],{i,2}]
> Out[1]={{a[1][x_],a[2][x_]}
> But then I can't write:
> fl={x^2,x-1}

Evaluate[fl] = {x^2,x-1}

This is necessary because Set (=) has attribute HoldFirst.

> Is there a way to get it working? I tried Thread, MapThread and some
> more but didn't find a solution.

MapThread also works:

With Thread you have the problem of Set's HoldFirst again.
That can be worked around like this:
Thread[myset[fl,{x^2,x-1}]] /. myset -> Set

--    --    --    --    --    --    --    --    --    --    --    -- 
Daniel Reeves     

"The good Christian should beware of mathematicians and all those who
make empty prophecies.  The danger already exists that mathematicians
have made a covenant with the devil to darken the spirit and confine
man in the bonds of Hell."
                -- St. Augustine

  • Prev by Date: RE: Re: Evaluation of args in pure functions
  • Next by Date: Printing error w/MacOS8.5.1
  • Previous by thread: Re: List of function-heads
  • Next by thread: Re: List of function-heads