doc-src/Tutorial/Recdef/last
author ballarin
Tue, 30 Sep 2003 15:10:26 +0200
changeset 14213 7bf882b0a51e
parent 6100 40d66bc3e83f
permissions -rw-r--r--
Changed order of prems in finprod_cong. Slight speedup.

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