doc-src/Tutorial/Misc/Last.thy
author nipkow
Tue, 08 Jan 2002 12:47:58 +0100
changeset 12664 acbe16e49abe
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added filter_filter

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