doc-src/Tutorial/Recdef/Sep2.thy
author paulson
Thu, 16 Oct 2003 10:31:40 +0200
changeset 14236 c73d62ce9d1c
parent 6100 40d66bc3e83f
permissions -rw-r--r--
partial conversion to Isar scripts

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