doc-src/Tutorial/Recdef/Sep2.thy
author berghofe
Mon, 12 May 2003 13:51:50 +0200
changeset 14008 f843528b9f3c
parent 6100 40d66bc3e83f
permissions -rw-r--r--
Program extraction framework.

Sep2 = Main +
consts sep :: 'a list => 'a => 'a list
recdef sep "measure length"
  "sep (x#y#zs) = (%a. x # a # sep zs a)"
  "sep xs       = (%a. xs)"
end