import Test.SmallCheck
append :: forall t . [t] -> [t] -> [t]
append x y = case x of
[] -> y
h : t -> h : append t y
associative f =
\ x y z -> f x (f y z) == f (f x y) z
test1 = smallCheckI
(associative (append::[Int]->[Int]->[Int]))
Übung: Kommutativität (formulieren und testen)