![]() | ![]() | ![]() | Mutually recursive definitions | Documentation and user's manual | Table of contents | OCaml programs |
This code gives a correct definition of both the predicate functions checking whether a natural number is even and whether a natural number is odd
This is a mutually recursive definition. |
Similarly mutually recursive definitions of types can be written. |
![]() | ![]() | ![]() | Mutually recursive definitions | Documentation and user's manual | Table of contents | OCaml programs |