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

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

Search the Archive

Re: Zero argument functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61711] Re: Zero argument functions
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 27 Oct 2005 05:01:36 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <djn3hk$ilk$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

with myFunc[]:={whatever}

you see from the code, that calling myFunc[] will 
do more than
just copy something from the memory.

It make the code clearer.

Regards
  Jens

<kalymereau at yahoo.fr> schrieb im Newsbeitrag 
news:djn3hk$ilk$1 at smc.vnet.net...
| Hi
|
| For a "function" with no argument, what is the 
difference between:
|
| myFunc:=(whatever)
|
| and
|
| myFunc[]:=(whatever)
|
| I find the first syntax simpler, but there are 
many built-in
| Mathematica functions that use the second one.
|
| Thanks
| 



  • Prev by Date: Re: Zero argument functions
  • Next by Date: Re: Combinations
  • Previous by thread: Re: Zero argument functions
  • Next by thread: Re: Zero argument functions