doc-src/TutorialI/ToyList2/ToyList1
changeset 15141 a95c2ff210ba
parent 15136 1275417e3930
child 26729 43a72d892594
equal deleted inserted replaced
15140:322485b816ac 15141:a95c2ff210ba
     1 theory ToyList
     1 theory ToyList
     2 import PreList
     2 imports PreList
     3 begin
     3 begin
     4 
     4 
     5 datatype 'a list = Nil                          ("[]")
     5 datatype 'a list = Nil                          ("[]")
     6                  | Cons 'a "'a list"            (infixr "#" 65)
     6                  | Cons 'a "'a list"            (infixr "#" 65)
     7 
     7