Binary-Operator-Identity¶
Sourcery rule id: binary-operator-identity
¶
Description¶
Simplify binary operation
Before¶
2 - 2
After¶
0
Explanation¶
Some identities can be applied to simplify certain binary operations. For example
writing x - x
is a complicated way of saying 0
.