doc-src/Tutorial/Misc/Last.thy
author paulson
Tue, 16 May 2000 14:04:29 +0200
changeset 8876 f797816932d7
parent 5377 efb799c5ed3c
permissions -rw-r--r--
reverted to old proof of dominoes_tile_row, given new treatment of #2+...

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