doc-src/Tutorial/Ifexpr/value
author paulson
Wed, 19 Jul 2000 12:33:36 +0200
changeset 9392 c8e6529cc082
parent 5377 efb799c5ed3c
permissions -rw-r--r--
changed / to // for quotienting

consts value :: boolex => (nat => bool) => bool
primrec
"value (Const b) env = b"
"value (Var x)   env = env x"
"value (Neg b)   env = (~ value b env)"
"value (And b c) env = (value b env & value c env)"