doc-src/Tutorial/Misc/Sep.thy
author ballarin
Mon, 10 Mar 2003 17:25:34 +0100
changeset 13854 91c9ab25fece
parent 5377 efb799c5ed3c
permissions -rw-r--r--
First distributed version of Group and Ring theory.

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