forked from steger/pr3-sose2026
Tuples
parent
6e1083ad56
commit
9fda964891
|
|
@ -54,6 +54,14 @@ Expression | Type (:t) | Value | Comment
|
|||
|
||||
## Tuples
|
||||
|
||||
Expression | Type (:t) | Value | Comment
|
||||
--- | --- | --- | --------
|
||||
`(1, 2)` | `(Num a, Num b) => (a, b)` | `(1, 2)` |
|
||||
`(1, "hello", True)` | `(Num a => (a, String, Bool)` | `(1, "hello", True)` |
|
||||
`fst (1, 2)` | `Num a => a` | `1` |
|
||||
`snd (1, 2)` | `Num b => b` | `2` |
|
||||
`(,) 1 2` | `Num a => a -> a -> (a, a)` | `(1, 2)` |
|
||||
|
||||
## Strings
|
||||
|
||||
## Control Structures
|
||||
|
|
|
|||
Loading…
Reference in New Issue