Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Use LSTS syntax in examples
  • Loading branch information
andrew-johnson-4 authored Nov 12, 2024
1 parent c2590c3 commit 83e74af
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ A fragment is a Key-Value Map of Strings to S-Expressions. This data structure p
If we have several overloaded functions then specialization lets us choose the best fit for any particular application.

```
f := λ(: x X). x;
f := λ(: y Y). y;
let f(x: X) = x;
let f(y: Y) = y;
f (: x X)
f(x: X);
```

In this example the function application does not “fit” the application that expects a Y type argument, so there is only one possible candidate function.
Expand All @@ -45,10 +45,10 @@ In this example the function application does not “fit” the application that
```
type X implies Y;
f := λ(: x X). x;
f := λ(: y Y). y;
let f(x: X) = x;
let f(y: Y) = y;
f (: x X)
f(x: X)
```

Now both candidate functions “fit”, however X is a narrower type than Y.
Expand Down

0 comments on commit 83e74af

Please sign in to comment.