doc-src/Tutorial/Misc/Sep2.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;

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