Tuples
This commit is contained in:
parent
be4e489380
commit
45edc3e622
|
@ -1 +1,9 @@
|
||||||
# Tuple
|
# 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)
|
||||||
|
```
|
Loading…
Reference in New Issue