Skip to content

Commit

Permalink
Tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkendall authored and rvcas committed Nov 26, 2022
1 parent be4e489 commit 45edc3e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions book/src/language-tour/tuple.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
# Tuple

Tuples are anonymous product types. They are useful for passing combinations of data between functions.

```
let x = (1, 2)
let y = (3, 4)
pairAdder(x, y) -- --> (4, 6)
```

0 comments on commit 45edc3e

Please sign in to comment.