doc-src/Tutorial/Misc/Sep.thy
author paulson
Fri, 20 Apr 2001 11:11:40 +0200
changeset 11261 51bcafc7bfca
parent 5377 efb799c5ed3c
permissions -rw-r--r--
suggestions from OHeimb

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