doc-src/Tutorial/Recdef/sep
author berghofe
Mon, 22 Jul 2002 13:55:44 +0200
changeset 13408 024af54a625c
parent 6100 40d66bc3e83f
permissions -rw-r--r--
Added "nocite" to avoid BibTeX error when proofs are switched off.

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)"