doc-src/Tutorial/Recdef/Sep1.thy
author berghofe
Mon, 21 Oct 2002 17:16:24 +0200
changeset 13667 0009325e9af0
parent 6100 40d66bc3e83f
permissions -rw-r--r--
Replaced variantlist (quadratic) by gen_names (linear).

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