doc-src/Tutorial/Recdef/last
author berghofe
Wed, 10 Jul 2002 18:37:51 +0200
changeset 13341 f15ed50d16cf
parent 6100 40d66bc3e83f
permissions -rw-r--r--
- Moved abs_def to drule.ML - elim_defs now takes a boolean argument which controls the automatic expansion of theorems mentioning constants whose definitions are eliminated

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