mpri-funcprog-project/src/tests/partial_eval.lambda
Théophile Bastian 5c6f538f9e Add a test for partial evaluation
This is mostly in case I actually implement better functions of arity
>1, but forget to add this test.
2018-02-16 02:58:08 +01:00

6 lines
122 B
Plaintext

let sum = fun x -> fun y -> fun z -> x + y + z in
let plus2 = sum 1 1 in
let _ = print (sum 30 10 2) in
print (plus2 40)