doc-src/Tutorial/Misc/Last.thy
author nipkow
Tue, 29 Sep 1998 12:07:31 +0200
changeset 5581 295bb029170c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
New keywords

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