Felix Hans Michel Grimberg
Felix Hans Michel Grimberg
Agreed. What you suggest is easier because [a Weights class couldn't have a [] operator](https://stackoverflow.com/questions/29630917/can-i-create-a-class-operator-in-typescript), which means that we would have to go through the entire codebase and change all...
I like your original suggestion of calling it `weights_math.ts` better because it's shorter. Wdyt ?
Updated - we still have an issue, but we have a slightly better idea of when/where it occurs.
I remember this problem. If we don't manage to use Set, then we must prevent the `PeerID[]` from containing duplicate values!