doc-src/Tutorial/Misc/Last.thy
author nipkow
Thu, 12 Nov 1998 16:45:40 +0100
changeset 5851 15ce4c1c8313
parent 5377 efb799c5ed3c
permissions -rw-r--r--
New section on advanced datatypes.

Last = List +
consts last :: 'a list => 'a
recdef last "measure (%xs. length xs)"
    "last [x]      = x"
    "last (x#y#zs) = last (y#zs)"
end