doc-src/Tutorial/Recdef/last
author berghofe
Fri, 16 Jul 1999 12:14:04 +0200
changeset 7015 85be09eb136c
parent 6100 40d66bc3e83f
permissions -rw-r--r--
- Datatype package now also supports arbitrarily branching datatypes (using function types). - Added new simplification procedure for proving distinctness of constructors. - dtK is now a reference.

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