doc-src/Tutorial/Recdef/last
author kleing
Thu, 17 Jan 2002 15:06:36 +0100
changeset 12791 ccc0f45ad2c4
parent 6100 40d66bc3e83f
permissions -rw-r--r--
registered directly executable version with the code generator

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