doc-src/Tutorial/Misc/Last.thy
author wenzelm
Mon, 08 May 2000 11:13:28 +0200
changeset 8828 5be2d1745c61
parent 5377 efb799c5ed3c
permissions -rw-r--r--
improved indexing;

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