Alg. Datentypen (Beispiele)

data Bool = False | True
data Maybe a = Nothing | Just a

data Tree a = 
    Leaf | Branch ( Tree a ) a ( Tree a)
Ü: inorder, preorder, leaves, depth

Ü: Schlüssel in Blättern

data N = Z | S N
Ü: Rechenoperationen



Johannes Waldmann 2011-06-29