It is the keyword used to define a function in Haskell.
let
It is the operator used to concatenate two lists.
Haskell
++
It is the type that represents whole numbers (positive and negative, no decimals).
Haskell
Int
It is the symbol used to define a function’s type signature.
Haskell
::
It is the keyword used to define local bindings inside a function.
Haskell
let (or where)
Haskell is a functional programming language.
True/False
True
In Haskell, variable values can be changed after they are defined.
True/False
False
The expression 5 + 3 will return 8 in Haskell.
True/False
True
Lists in Haskell must contain elements of the same type.
True/False
True
The function head returns the last element of a list.
True/False
False
x = 10 y = 5 x + y
15
double n = n * 2 double 4
8
numbers = [1,2,3] length numbers
3
add a b = a + b add 3 7
10
list = [10,20,30] head list
10