You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the signature of List.Extra.splitWhen don't make completely sense:
-- current --splitWhen: (a->Bool) ->Lista->Maybe ( Lista, Lista )
splitWhen (\n -> n ==6)[1,2,3,4,5]--> Nothing
-- problematic example --case splitWhen someFunction list ofNothing->-- do one thingJust(left,[])->-- never happensJust(left, headR :: queueR)->-- do something else
To me it makes more sense to remove the Maybe and if the given function never returns True then just give an empty list in Tuple.second.
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.The text was updated successfully, but these errors were encountered: