MathGroup Archive 2010

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

Search the Archive

Re: different results for Standard vs Prefix forms


You can tell from the syntax coloring that the value of n is not passed into Plot. That's because the # is separated from & by]. These two variations work:

A = # &@Plot;
Block[{n = 2}, A[n x , {x, 1, 2}]]


> First one works, but second one doesn't, why?
> Block[{n = 2}, Plot[n x, {x, 1, 2}]]
> Block[{n = 2}, #] &@Plot[n x, {x, 1, 2}]
>


  • Prev by Date: Kernels dying on parallel code
  • Next by Date: Combinatorica, TransitiveClosure
  • Previous by thread: Re: different results for Standard vs Prefix forms
  • Next by thread: Re: different results for Standard vs Prefix forms