summaryrefslogtreecommitdiff
path: root/grammar.txt
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-08-12 09:23:46 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-08-12 09:23:46 -0700
commit0e03b779e48cf7c96b6fc351c1f4b3ed7a76d01c (patch)
tree9b7b32ec7e953014826bdea31dc14f08e321f30b /grammar.txt
parentb5cb9f472d9b19d762aac91116b266f90404b9ca (diff)
downloadgock-0e03b779e48cf7c96b6fc351c1f4b3ed7a76d01c.tar.gz
gock-0e03b779e48cf7c96b6fc351c1f4b3ed7a76d01c.zip
Check
Diffstat (limited to 'grammar.txt')
-rw-r--r--grammar.txt12
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;