Struct
In the prelude: every iyi program has it, with no import.
Structstruct
struct Struct < Value
def ==(other : self) : Bool
endStructIn the prelude: every iyi program has it, with no import.
Structstructstruct Struct < Value
def ==(other : self) : Bool
end
A struct is its fields, as the other library's
Struct#==has it: two are equal when each field is.Object#==answers false, so a struct was not equal to itself -b == bwas false and{b => 1}[b]?nil.Object#hashstays correct for it, one slot a type; a struct that is a key writes one.