Closed ghost closed 7 years ago
Hi @sj4
The question here is, that it means the two focuses are the same? The response can be:
identical?
predicate.Maybe I'm missing something, but I don't find where the IEquiv
can be useful for focuses, can you elaborate more please!
I think using identical?
should solve the case, thanks for the hint, sorry for the noise
No problem ;)
In an app I'm currently developing I found a use cases where it would be beneficial if I could check if two lenses are the same. Currently this is only possible by using deref and compare the values (and that does not guarantee the lenses are pointing at the same location in a datastructure)
would it be possible to implement IEquiv, e.g. by comparing the id of the lens?