pure functions vs. functions
- To: mathgroup at smc.vnet.net
- Subject: [mg57415] pure functions vs. functions
- From: "Marcin Rak" <umrakmm at cc.umanitoba.ca>
- Date: Fri, 27 May 2005 04:56:53 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hey everyone, I had a beginner question: what exactly is the difference
between a pure function and just a function?
ie. the difference between declaring functions using
f[arg1_,...,argn_] := "some expression making use of the arguments"
and explicilty calling Function[{arg1_,...,argn_}, "same expression
making use of the arguments"]
They have different heads!!
Thanks
MR
- Follow-Ups:
- Re: pure functions vs. functions
- From: DrBob <drbob@bigfoot.com>
- Re: pure functions vs. functions