Open staeter opened 3 years ago
Thats a really good point. That is confusing.
If we go to a (List a, List a)
is it confusing that..
splitWhen fn []
--> ([], [])
?
Maybe not right? I feel like thats alright.
Without the Maybe
, the second list being empty would indicate that there was no point on which to split.
So far I like this idea of dropping the Maybe
from splitWhen
I noticed the signature of
List.Extra.splitWhen
don't make completely sense:To me it makes more sense to remove the
Maybe
and if the given function never returnsTrue
then just give an empty list inTuple.second
.Right now the behavior is kind of oddly combining with
List.any
and there is a repeating of the information.