Rules for Pattern Matching

The preceding example illustrates some rules for pattern matching:

  1. Function names and structure in the pattern must be matched exactly by the input.

  2. A variable in the pattern will match anything in the input, but it must do so consistently.

Contents    Page-10    Prev    Next    Page+10    Index