Skip to content

Commit

Permalink
Whoa
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljharvey committed Dec 31, 2023
1 parent ba4f068 commit 7be1cd9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -51,3 +51,11 @@ function sumPair(pair: (Float,Float)) {
sumPair((100.0,200.0))
```

```
function makePair<a,b>(left: a, right: b) {
(left, right)
}
makePair(Box(100.0),Box(200.0))
```

0 comments on commit 7be1cd9

Please sign in to comment.