m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/good/curry.mim
diff options
context:
space:
mode:
Diffstat (limited to 'good/curry.mim')
-rw-r--r--good/curry.mim8
1 files changed, 8 insertions, 0 deletions
diff --git a/good/curry.mim b/good/curry.mim
new file mode 100644
index 0000000..2fc0b7b
--- /dev/null
+++ b/good/curry.mim
@@ -0,0 +1,8 @@
+(let (curry f : {Int Int} -> Int)
+ (lambda n : Int
+ (lambda m : Int
+ (f {n m})))
+(let (add xy : {Int Int})
+ (+ xy.1 xy.2)
+(let (cAdd) (curry add)
+ ((cAdd 3) 4))))