MathGroup Archive 2001

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

Search the Archive

Re: Reentrant Functions

  • To: mathgroup at
  • Subject: [mg29441] Re: [mg29424] Reentrant Functions
  • From: Andrzej Kozlowski <andrzej at>
  • Date: Wed, 20 Jun 2001 04:36:22 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

on 6/19/01 6:35 PM, Hermann Schmitt at schmitther at wrote:

> Hello,
> can functions be made reentrant, i.e. can I invoke in a function the
> same function again?
> Hermann Schmitt
If you mean what I think you mean than the answer is yes. #0 inside a
function stands for the function itself. For example the following is the
definition of the factorial function:

If[#==1,1,# #0[#-1]]&



If[#==1,1,# #0[#-1]]&[5]
Andrzej Kozlowski
Toyama International University

  • Prev by Date: Re: Simple question
  • Next by Date: Re: Reentrant Functions
  • Previous by thread: Re: Reentrant Functions
  • Next by thread: Re: Reentrant Functions