What is the value of
(match '(- ?x ?y) '(- w 3)) ?

  • A: ((?y 3))
  • B: true
  • C: false
  • D: null
  • E: ((?y 3) (?x w))

    Answer: E

    (match pattern input ) compares the pattern and input, returning a binding list or association list of variable substitutions that, if made, would cause the pattern to be equal to the input (or null if there is no such substitution).

    The rules for match are:

    Contents    Page-10    Prev    Next    Page+10    Index