Binary Operator Identity¶
Sourcery refactoring id: bin-op-identity¶
Description:¶
Replaces binary operations between a value and itself with known identities:
Changes:¶
x | x=>xx & x=>xx ^ x=>0x - x=>0x / x=>1x // x=>1x % x=>0
Explanation:¶
These changes simplify the code, making it easier to understand what is going on.