3 ms·
Maybe I misunderstood you, but you can use structs as keys of a map.
by genthor 4y ago
Maybe I misunderstood you, but you can use structs as keys of a map.
- sam0x17 4y agonot if it doesn't have equailty defined. Then you have to define it. Oh, and it's an AST node someone at X company wrote and there are 100+ node types. Have fun! In crystal there is a reasonable data-based default hash implementation that you can just rely on.