doc-src/Tutorial/Misc/Last.thy
author ballarin
Tue, 30 Sep 2003 17:05:50 +0200
changeset 14216 a15951091d5d
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Removed garbage accidentally left behind in file.

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