doc-src/Tutorial/Misc/Sep2.thy
author wenzelm
Fri, 01 Dec 2000 19:40:42 +0100
changeset 10564 42f41f966db4
parent 5377 efb799c5ed3c
permissions -rw-r--r--
usedir: -m option;

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