doc-src/Tutorial/Misc/Last.thy
author oheimb
Tue, 07 Jan 2003 18:08:17 +0100
changeset 13774 77a1e723151d
parent 5377 efb799c5ed3c
permissions -rw-r--r--
corrected swallowing of newlines after end-of-ignore (improved)

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