doc-src/Tutorial/Misc/Last.thy
author wenzelm
Thu, 08 Aug 2002 23:51:24 +0200
changeset 13486 54464ea94d6f
parent 5377 efb799c5ed3c
permissions -rw-r--r--
exception SIMPROC_FAIL: solid error reporting of simprocs;

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