diff --git a/README.md b/README.md index b8e808b0..53c52244 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ if swapPair((100,True)).1 then 7 else 8 ## wasm-calc5 -Floats, use different WASM types +Floats, boxing, polymorphism, use different WASM types ``` function sumPair(pair: (Float,Float)) { @@ -51,3 +51,11 @@ function sumPair(pair: (Float,Float)) { sumPair((100.0,200.0)) ``` + +``` +function makePair(left: a, right: b) { + (left, right) +} + +makePair(Box(100.0),Box(200.0)) +```