Tuples
This commit is contained in:
@@ -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)
|
||||
```
|
||||
Reference in New Issue
Block a user