2018-06-14 02:48:03 +03:00
|
|
|
f = if a then 1 else 2
|
|
|
|
f = if a; then b; else c
|
|
|
|
f = if (if a then b else c) then d else e
|
|
|
|
f = if if a then b else c then d else e
|
2018-06-20 03:37:40 +03:00
|
|
|
|
|
|
|
head' :: [a] -> a
|
|
|
|
head' [] = error "No head for empty lists!"
|
|
|
|
head' (x:_) = x
|