1

What I want to do is, test if a certain expression unifies with another in Oz.

For example, I want to do something like this:

fun {UnifyP A B}
  ...
end

that can return true when A can be unified to B and false else.

I want to use it to do a specific pattern matching (i.e. filter lists by a specific pattern).

Thank you for your answers.

Toon Krijthe
  • 52,876
  • 38
  • 145
  • 202
mhourdakis
  • 179
  • 8
  • Is `B` a constant pattern or a value that is computed at runtime? – wmeyer Apr 27 '12 at 17:40
  • Sorry for the delay, I had forgotten about this question since I continued doing something else. B is constant. I.e, `A` is `point(X Y)` and `B` is `point(0 0)`. – mhourdakis May 09 '12 at 16:12

0 Answers0