doc-src/Tutorial/Misc/Sep.thy
author berghofe
Tue, 17 Aug 1999 14:01:39 +0200
changeset 7228 ddb67dcf026c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Tuned some comments.

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