doc-src/Tutorial/Recdef/Sep1.thy
author paulson
Mon, 12 Nov 2001 10:56:38 +0100
changeset 12156 d2758965362e
parent 6100 40d66bc3e83f
permissions -rw-r--r--
new-style numerals without leading #, along with generic 0 and 1

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