doc-src/Tutorial/Misc/Last.thy
author berghofe
Tue, 11 Mar 2003 14:13:20 +0100
changeset 13855 644692eca537
parent 5377 efb799c5ed3c
permissions -rw-r--r--
addsplits / delsplits no longer ignore type of constant.

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