doc-src/Tutorial/Misc/Sep.thy
author berghofe
Mon, 12 May 2003 13:51:50 +0200
changeset 14008 f843528b9f3c
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Program extraction framework.

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