doc-src/Tutorial/Recdef/Sep2.thy
author wenzelm
Fri, 16 Jul 1999 22:24:42 +0200
changeset 7024 44bd3c094fd6
parent 6100 40d66bc3e83f
permissions -rw-r--r--
tuned;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6100
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     1
Sep2 = Main +
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     2
consts sep :: 'a list => 'a => 'a list
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     3
recdef sep "measure length"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     4
  "sep (x#y#zs) = (%a. x # a # sep zs a)"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     5
  "sep xs       = (%a. xs)"
40d66bc3e83f *** empty log message ***
nipkow
parents:
diff changeset
     6
end