diff options
Diffstat (limited to 'factorial.mu')
-rw-r--r-- | factorial.mu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/factorial.mu b/factorial.mu index d38ede06..70fa17fe 100644 --- a/factorial.mu +++ b/factorial.mu @@ -1,14 +1,14 @@ # example program: compute the factorial of 5 recipe main [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space x:number <- factorial 5:literal $print [result: ], x:number, [ ] ] recipe factorial [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space n:number <- next-ingredient { # if n=0 return 1 |