Closed MarekSuchanek closed 6 years ago
In tutorial 05, subsection Own operators, in example
Prelude> (+) 5 7
12
Prelude> 7 `div` 2
3
Prelude> foo x y z = x * (y + z)
Prelude> (5 `foo` 3) 12
65
last result is wrong (should be 75).
also, in example below
Prelude> (><) xs ys = reverse xs ++ reverse ys
Prelude> (><) "abc" "xyz"
"zyxcba"
Prelude> "abc" >< "xyz"
"zyxcba"
Prelude> :info (><)
(><) :: [a] -> [a] -> [a]
zyxcba
is wrong (should be cbazyx
)
B172 Errata + additions
Mistakes of B172 materials to be fixed
01
02
03
04
Prelude T B C E>
(maybe also imports)[Hayoo]
is there)05
mkPolygon
switchPSize
andNoVertices
in type signaturegeneralSort
type change toOrd a => a
and fix return array(><)
, parametre (#11)(5 `foo` 3) 12
result (comment bellow by @klememi)06
07
08
09
10