local -> var; scope reformatted; singleton is killed finally

This commit is contained in:
Dmitry Boulytchev 2021-01-31 22:25:31 +03:00
parent 5ae88f820d
commit 216e716251
11067 changed files with 12168 additions and 12173 deletions

View file

@ -1,6 +1,6 @@
import Fun;
local fact = fix (fun (self) {fun (n) {if n <= 1 then 1 else n * self (n-1) fi}});
var fact = fix (fun (self) {fun (n) {if n <= 1 then 1 else n * self (n-1) fi}});
printf ("%d\n", fact (3));
printf ("%d\n", fact (5));