Re: Placing the "&"
- To: mathgroup at smc.vnet.net
- Subject: [mg114867] Re: Placing the "&"
- From: ziloo <ziloo_1 at yahoo.com>
- Date: Tue, 21 Dec 2010 00:17:28 -0500 (EST)
- References: <firstname.lastname@example.org>
Yes...that answers my question. Thank you ^_^ ! ziloo On Dec 20, 8:41 am, Themis Matsoukas <tmatsou... at me.com> wrote: > Ziloo, > > I am not sure what you mean by "once a pure function becomes an argument for another standard function [...]". A pure function is the entire construct that includes # and ends with &. Maybe you are referring to the # as the pure function? That's only the placeholder for the dummy variable. For example, in > > PrimeQ[2^(#)+1]& > > the pure function is the entire line, not just the #. The above is equivalent to the standard function, > > f[x_]:= PrimeQ[2^(x)+1] > > Compare now PrimeQ[2^(#) + 1] & and f. They both evaluate the function at x=2 and give the same answer. > > Does this help? > > Themis