From: utzoo!decvax!harpo!floyd!cmcl2!philabs!micomvax!ray
Newsgroups: net.lang
Title: Re: Recursion
Article-I.D.: micomvax.126
Posted: Wed Mar 23 10:49:37 1983
Received: Fri Mar 25 07:59:24 1983


I have probably come into this discussion very late, but anyway I have always
thought the best example of recursion is the definition of factorial:-

function fact(n);
  if n=0 then 1 else n*fact(n-1) close
end

The language by the way is POP-2, and that introduces a whole new discussion...