I am not sure about which/how many cases I should add in the documentation for this change.
I added one for the two cases above, but there are many more that are now included.
Not sure how to generalize it.
Maybe the examples also are a bit complex, and this change doesn't really need any doc examples?
Multiple fixes
This can lead to multiple fixes, at least when writing tests.
List.member a ([a,b] ++ [c,d])
--> True
and
--> List.member a ([a,b,c,d])
I guess this is unavoidable and also happens for a lot of other rules and that this is fine, but the solutions is probably just write tests that avoid this issue?
Add case for
++
inlistGetElements
.This enables simplifications such as
Examples in docs
I am not sure about which/how many cases I should add in the documentation for this change. I added one for the two cases above, but there are many more that are now included. Not sure how to generalize it. Maybe the examples also are a bit complex, and this change doesn't really need any doc examples?
Multiple fixes
This can lead to multiple fixes, at least when writing tests.
I guess this is unavoidable and also happens for a lot of other rules and that this is fine, but the solutions is probably just write tests that avoid this issue?