Skip to content

Commit 4e95867

Browse files
committed
readme
1 parent e981781 commit 4e95867

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ and is allocated on the heap, and includes SIO (Short Integer Optimization).
3939

4040
## Units system
4141

42+
```
43+
let speed = 100.0 (km/h)
44+
let duration = 15.0 min
45+
let distance = speed * duration // 25.0 km
46+
47+
fn convert(length : real (m), dpi : real (px/in)) -> real (px)
48+
{
49+
return length * dpi
50+
}
51+
```
52+
4253
## Elaboration Phase
4354
Certain languages have a separate elaboration phase during compilation.
4455

0 commit comments

Comments
 (0)