doc-src/Tutorial/Recdef/Sep1.thy
author wenzelm
Mon, 08 May 2000 11:13:28 +0200
changeset 8828 5be2d1745c61
parent 6100 40d66bc3e83f
permissions -rw-r--r--
improved indexing;

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