doc-src/Tutorial/Misc/Sep.thy
author wenzelm
Thu, 08 Aug 2002 23:51:24 +0200
changeset 13486 54464ea94d6f
parent 5377 efb799c5ed3c
permissions -rw-r--r--
exception SIMPROC_FAIL: solid error reporting of simprocs;

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