| Next | Atypical Types | 29 |
[True, False, True] [Bool]
[True, False, True, False] [Bool]
[1,2,3,4,5] [Integer]
['O', 'O', 'P', 'S', 'L', 'A'] [Char]
"OOPSLA" [Char]
String is accepted as a synonym for [Char]
Types like [Integer] this should remind you of Java types like List<Integer> etc.
Just as Java has List<List<Integer>>, Haskell has [[Integer]]
[ [1,2,3], [4,6], [0,233] ] [[Integer]]
[ "I", "like", "pie" ] [[Char]]
[17, "foo"] Error
| Next | ![]() |
Copyright © 1999,2008 Mark Dominus |