doc-src/Tutorial/Misc/Last.thy
author nipkow
Fri, 10 Sep 2004 00:19:15 +0200
changeset 15195 197e00ce3f20
parent 5377 efb799c5ed3c
permissions -rw-r--r--
new forward deduction capability for simplifier

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