doc-src/Tutorial/Misc/Last.thy
author paulson
Mon, 23 Oct 2000 16:24:52 +0200
changeset 10294 2ec9c808a8a7
parent 5377 efb799c5ed3c
permissions -rw-r--r--
the Sets chapter and theories

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