mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-09 00:08:44 +00:00
Massive renaming
This commit is contained in:
parent
241ab0a9ae
commit
61296c51e7
152 changed files with 45 additions and 29 deletions
|
|
@ -1,22 +0,0 @@
|
|||
import Collection;
|
||||
|
||||
fun f (x, y) {
|
||||
fun () {x+y}
|
||||
}
|
||||
|
||||
local t = emptyMemo (),
|
||||
a = lookupMemo (t, "abc"),
|
||||
b = lookupMemo (t, [1, 2, 3, 4, "abc"]),
|
||||
c = lookupMemo (t, f (5, 6));
|
||||
|
||||
printf ("Cached: %d\n", lookupMemo (t, "abc") == a);
|
||||
printf ("Cached: %d\n", lookupMemo (t, "abc") == a);
|
||||
printf ("Cached: %d\n", lookupMemo (t, "abc") == a);
|
||||
|
||||
printf ("Cached: %d\n", lookupMemo (t, [1, 2, 3, 4, "abc"]) == b);
|
||||
printf ("Cached: %d\n", lookupMemo (t, [1, 2, 3, 4, "abc"]) == b);
|
||||
printf ("Cached: %d\n", lookupMemo (t, [1, 2, 3, 4, "abc"]) == b);
|
||||
|
||||
printf ("Cached: %d\n", lookupMemo (t, f (5, 6)) == c);
|
||||
printf ("Cached: %d\n", lookupMemo (t, f (5, 6)) == c);
|
||||
printf ("Cached: %d\n", lookupMemo (t, f (5, 6)) == c)
|
||||
Loading…
Add table
Add a link
Reference in a new issue