Open kasium opened 2 years ago
Find consecutive slices which can be replaced by just one slice.
foo = [1,2,3,4] # Bad foo[1:][:2] foo[1:][2:] # Good foo[1:3] foo[3:]
Explanation
Find consecutive slices which can be replaced by just one slice.
Example