Example of a Recursive Action


Action:


|recursively bind "f" to closure abstraction of
| ||rebind moreover bind "n" to the given datum
| |hence
| |||give the datum bound to "n"
| ||then
| ||||check (it is 0) then give 1
| |||or
| |||||enact (application (the abstraction bound to "f") to difference(the given datum,1))
| ||||then
| |||||give it
hence
||give the abstraction bound to "f" 
|then 
||enact (application (the given abstraction) to 2)

Informal description:

Incomplete...

Try this action using Java ANI.


RAT| People

[Created by Luis Carlos. Last edited at 16 Apr 2004 by Luis Carlos]