doc-src/Tutorial/Recdef/Sep2.thy
author paulson
Wed, 07 Nov 2001 12:29:07 +0100
changeset 12088 6f463d16cbd0
parent 6100 40d66bc3e83f
permissions -rw-r--r--
reorganization of the ZF examples

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