Add closures and fix lets in monomorphizer
This commit is contained in:
parent
677a200a15
commit
72e599d5de
26 changed files with 1440 additions and 692 deletions
10
sample-programs/working/closure.crf
Normal file
10
sample-programs/working/closure.crf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
|
||||
|
||||
|
||||
apply : (Int -> Int) -> Int -> Int
|
||||
apply f z = f z
|
||||
|
||||
main =
|
||||
let x = 10 in
|
||||
apply (\y. y + x) 6
|
||||
Loading…
Add table
Add a link
Reference in a new issue