I need to compare two Lists of Rules of form var -> integer
on the fact of mismatch.
To determine, if there are any rules the same by lhs and different by rhs.
For example:
{a->3, b->1, c->4} ~ ??? ~ {a->3, b->1, c->4} = true
{a->3, b->1, c->4} ~ ??? ~ {a->3, b->2, c->4} = false
{a->3, b->1, c->4} ~ ??? ~ {a->1, b->3, c->4} = false
{a->3, b->1, c->4} ~ ??? ~ {c->4, d->8, e->9} = true
{a->3, b->1, c->4} ~ ??? ~ {d->8, e->9, f->7} = true
In my case they are already sorted by lhs and all lhs are unique if it could help to make as simple function as possible.
UPD: forgot one thing! Lists can be of different length. But seems like all three current answers are still valid.