doc-src/Tutorial/Recdef/Sep2.thy
author berghofe
Thu, 20 Dec 2001 14:57:15 +0100
changeset 12555 e6d7f040fdc7
parent 6100 40d66bc3e83f
permissions -rw-r--r--
"code" attribute is now managed by basic code generator module.

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