Dict equality with composite type value

By the way, as @simeonschaub said, your code will pass the tests doing:

import Base: ==

function ==(val1::Module.Struct, val2::Module.Struct)
    return val1.id == val2.id && val1.x == val2.x
end
1 Like