diff options
| author | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-08-12 09:23:46 -0700 |
|---|---|---|
| committer | Elizabeth Alexander Hunt <me@liz.coffee> | 2026-08-12 09:23:46 -0700 |
| commit | 0e03b779e48cf7c96b6fc351c1f4b3ed7a76d01c (patch) | |
| tree | 9b7b32ec7e953014826bdea31dc14f08e321f30b /grammar.txt | |
| parent | b5cb9f472d9b19d762aac91116b266f90404b9ca (diff) | |
| download | gock-0e03b779e48cf7c96b6fc351c1f4b3ed7a76d01c.tar.gz gock-0e03b779e48cf7c96b6fc351c1f4b3ed7a76d01c.zip | |
Check
Diffstat (limited to 'grammar.txt')
| -rw-r--r-- | grammar.txt | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/grammar.txt b/grammar.txt index ec9fa9c..f3de822 100644 --- a/grammar.txt +++ b/grammar.txt @@ -2,7 +2,17 @@ let x = 2; y = 3; in (x y) -let x: (Int) = +// If all functions are curried, can I do something like this? +let f: (((Int) -> (Int)) -> Int) = [a, b, c = (((if 1) a) b)] { (plus ((plus a) b) c) }; in + +let x: (Int); + y: (Int) = { x }; + z = x; in + x = 2 + y() + + + let y: (Int) = { x }; in y; y: (Int) = 3; |
