doc-src/Tutorial/Misc/Last.thy
author ballarin
Wed, 10 Dec 2003 14:29:44 +0100
changeset 14287 f630017ed01c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Isar: where attribute supports instantiation of type variables.

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