doc-src/Tutorial/Misc/Last.thy
author berghofe
Mon, 12 May 2003 13:51:50 +0200
changeset 14008 f843528b9f3c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Program extraction framework.

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