doc-src/Tutorial/Recdef/last
author paulson
Wed, 13 Oct 1999 12:04:11 +0200
changeset 7840 e1fd12b864a1
parent 6100 40d66bc3e83f
permissions -rw-r--r--
projecting/extending version of drop_prog_guarantees

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