doc-src/Tutorial/Ifexpr/bool2if
author wenzelm
Wed, 20 Oct 1999 11:05:06 +0200
changeset 7886 8fa551e22e52
parent 5377 efb799c5ed3c
permissions -rw-r--r--
the settings environment is now statically scoped; tuned;

consts bool2if :: boolex => ifex
primrec
"bool2if (Const b) = CIF b"
"bool2if (Var x)   = VIF x"
"bool2if (Neg b)   = IF (bool2if b) (CIF False) (CIF True)"
"bool2if (And b c) = IF (bool2if b) (bool2if c) (CIF False)"