Container/Visitor/Iterator (I)

map reverse [ "foo", "bar" ] 
   = [ "oof", "rab" ]

map :: ( a -> b ) -> ( [a] -> [b] )

map f [] = []
map f (x : xs) = f x : map f xs
Aufgaben: Welchen Typ haben die Ausdrücke
map odd, map map, map (map odd)
Fügen Sie jeweils passende Argumente hinzu.



Johannes Waldmann 2004-11-30