doc-src/Tutorial/Misc/Sep.thy
author wenzelm
Mon, 04 Oct 1999 21:37:35 +0200
changeset 7694 20121c9dc1a6
parent 5377 efb799c5ed3c
permissions -rw-r--r--
tryres, gen_make_elim moved here;

Sep = List +
consts sep :: "'a * 'a list => 'a list"
recdef sep "measure (%(a,xs). length xs)"
    "sep(a, [])     = []"
    "sep(a, [x])    = [x]"
    "sep(a, x#y#zs) = x # a # sep(a,y#zs)"
end