PatternDispatch.jl icon indicating copy to clipboard operation
PatternDispatch.jl copied to clipboard

Other equivalence classes than EGAL

Open toivoh opened this issue 12 years ago • 0 comments

E.g. something like

@pattern f(x::IsEqual(5)) = ...

to match on f(x) as long as isequal(x, 5).

Should probably

  • assume and exploit that the predicate in question is an equivalence relation.
  • allow to use different equivalence relations.

toivoh avatar Jan 05 '13 21:01 toivoh