doc-src/Tutorial/Misc/Last.thy
author wenzelm
Sun, 04 Feb 2001 19:31:13 +0100
changeset 11049 7eef34adb852
parent 5377 efb799c5ed3c
permissions -rw-r--r--
HOL-NumberTheory: converted to new-style format and proper document setup;

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