Exercises |
---|
|
- "H" is a
String
with just one element. - 'Hello World' is invalid because
Char
s consist of only one character.
Exercises |
---|
What are the types of the following functions? For any functions involving numbers, you can just pretend the numbers are Ints.
|
negate :: Int -> Int
|| :: Bool -> Bool -> Bool
monthLength :: Bool -> Int -> Int
And in the second round:
f :: Bool -> Bool -> Bool
g :: Int -> Int