doc-src/Tutorial/Ifexpr/normal
author berghofe
Wed, 29 Jan 2003 17:35:11 +0100
changeset 13795 cfa3441c5238
parent 5377 efb799c5ed3c
permissions -rw-r--r--
Some tuning: - finite now uses rev_append (tail recursive!) to append stopper, because @ needs to much stack space for large strings - repeat is now tail recursive
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5377
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     1
consts normal :: ifex => bool
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     2
primrec
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     3
"normal(CIF b) = True"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     4
"normal(VIF x) = True"
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     5
"normal(IF b t e) = (normal t & normal e &
efb799c5ed3c *** empty log message ***
nipkow
parents:
diff changeset
     6
      (case b of CIF b => True | VIF x => True | IF x y z => False))"