Setdiff with comparison function?

I need to setdiff between 2 containers using a custom comparison function?
Is there such a thing?

Thanks

You mean an arbitrary function instead of ==? I am not sure that the result of that is well-defined.

It might be easier to just implement your own function rather than trying to fit your application in the setdiff paradigm.

1 Like