doc-src/Tutorial/Misc/Last.thy
author nipkow
Thu, 10 May 2001 17:28:40 +0200
changeset 11295 66925f23ac7f
parent 5377 efb799c5ed3c
permissions -rw-r--r--
improved tracing of permutative rules.

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