Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drew-y committed Sep 23, 2024
1 parent c994017 commit 6754586
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 6754586

Please sign in to comment.