doc-src/Tutorial/Misc/Last.thy
author berghofe
Wed, 18 Aug 1999 17:43:53 +0200
changeset 7260 745f834281e2
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Removed rbeta.

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