doc-src/Tutorial/Misc/Last.thy
author kleing
Mon, 19 Apr 2004 14:04:41 +0200
changeset 14632 805fa01ac233
parent 5377 efb799c5ed3c
permissions -rw-r--r--
temporarily reverted quote change for release. breaks latex output, needs more testing.

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