doc-src/Tutorial/Misc/Sep2.thy
author paulson
Fri, 23 Oct 1998 16:46:33 +0200
changeset 5745 a53ffabc6804
parent 5377 efb799c5ed3c
permissions -rw-r--r--
updated as requested by Markus

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