doc-src/Tutorial/Misc/Sep2.thy
author wenzelm
Fri, 16 Apr 1999 14:48:16 +0200
changeset 6437 9bdfe07ba8e9
parent 5377 efb799c5ed3c
permissions -rw-r--r--
'HOL/inductive' theory data;

Sep2 = List +
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