Empty Tuples
There exists the tuple type without data, which has only one possible value: the empty data.
Concept similar to void in C.
- Type:
() - Value:
()
ghci> (,) 2 3
(2,3)
There exists the tuple type without data, which has only one possible value: the empty data.
Concept similar to void in C.
()()ghci> (,) 2 3
(2,3)