The 
Mathematica Journal
Volume 9, Issue 1

Search

In This Issue
Tricks of the Trade
In and Out
Trott's Corner
New Products
New Publications
Calendar
News Bulletins
New Resources
Classifieds

Download This Issue 

About the journal
Editorial Policy
Staff
Submissions
Subscriptions
Advertising
Back Issues
Contact Information

In and Out
Edited by Paul Abbott

Pure Recursive Functions

Q: Normally, when creating a recursive function, I use the name of the function to perform the recursive call.

However, this has the disadvantage that the symbol fact is now global. Is it possible to create a pure recursive function?

A: Andrzej Kozlowski (akoz@mimuw.edu.pl) writes: #0 is a rarely used “parameter,” which refers to the pure function itself and thus makes it possible to create pure recursive functions.



     
About Mathematica  Download Mathematica Player
Copyright © Wolfram Media, Inc. All rights reserved.