doc-src/Tutorial/Recdef/Sep1.thy
author paulson
Mon, 04 Dec 2000 17:30:40 +0100
changeset 10579 1db42f739ee7
parent 6100 40d66bc3e83f
permissions -rw-r--r--
loads the new theory Numbers.thy

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