Skip to content

Commit

Permalink
Update README.md (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-y authored Sep 23, 2024
1 parent c994017 commit e43191b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,18 @@ for item in iterable do:
print item
```

Voyd is also tail call optimized:

```
// This function is super speedy and uses very little memory
pub fn fib(n: i32, a: i32, b: i32) -> i32
if n < 1 then: a
else: fib(n - 1, b, a + b)
pub fn main() -> i32
fib(10, 0, 1)
```

## Structural Objects

Structural objects are types compatible with any other type containing
Expand Down

0 comments on commit e43191b

Please sign in to comment.