doc-src/Tutorial/Misc/Last.thy
author oheimb
Tue, 20 Feb 2001 18:47:27 +0100
changeset 11165 3b69feb7d053
parent 5377 efb799c5ed3c
permissions -rw-r--r--
added image_cong to default congs of recdef

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