doc-src/Tutorial/Misc/constdefs
author paulson
Fri, 19 Mar 2004 10:42:38 +0100
changeset 14472 cba7c0a3ffb3
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Removing the datatype declaration of "order" allows the standard General.order to be used. Thus we can use Int.compare and String.compare instead of the slower home-grown versions.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5377
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     1
constdefs nand :: gate
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     2
         "nand A B == ~(A & B)"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     3
          exor :: gate
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     4
         "exor A B == A & ~B | ~A & B"