-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PA] More sync (more working recursive programs)
ghstack-source-id: fbab1f5058c768ef7522ccf10de5f53b9a722554 Pull Request resolved: #100
- Loading branch information
1 parent
0b290ef
commit c99256f
Showing
7 changed files
with
383 additions
and
361 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
let lp1 = fun self1 -> fun i -> | ||
if i = 0 then 5 | ||
else | ||
let lp2 = fun self2 -> fun j -> | ||
if j = 0 then self1 self1 (i - 1) else self2 self2 (j - 1) | ||
in | ||
lp2 lp2 10 | ||
in | ||
lp1 lp1 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
let lp1 = fun self1 -> fun i -> | ||
if i = 0 then 5 | ||
else | ||
let lp2 = fun self2 -> | ||
self1 self1 (i - 1) | ||
let lp2 = fun self2 -> fun j -> | ||
self1 self1 (i - 1) | ||
in | ||
lp2 lp2 | ||
lp2 lp2 10 | ||
in | ||
lp1 lp1 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters