doc-src/Tutorial/Misc/Last.thy
author paulson
Wed, 19 Jul 2000 12:33:36 +0200
changeset 9392 c8e6529cc082
parent 5377 efb799c5ed3c
permissions -rw-r--r--
changed / to // for quotienting

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