doc-src/Tutorial/Misc/Last.thy
author wenzelm
Thu, 01 Jul 1999 17:41:16 +0200
changeset 6872 b250da153b1e
parent 5377 efb799c5ed3c
permissions -rw-r--r--
fixed backtracking of global_qed;

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