doc-src/Tutorial/Misc/Last.thy
author wenzelm
Tue, 26 Oct 1999 19:06:52 +0200
changeset 7937 82025fe607d3
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added inform_file_processed, inform_file_retracted; proper outer syntax setup; more robust theory loader actions;

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