doc-src/Tutorial/Misc/Last.thy
author nipkow
Mon, 29 Nov 2004 11:18:16 +0100
changeset 15338 08519594b0e4
parent 5377 efb799c5ed3c
permissions -rw-r--r--
obsolete

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