Skip to content

Commit

Permalink
Make gatherWith tail-call optimized (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels authored Jun 5, 2021
1 parent 2e45534 commit 2d0eb64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/List/Extra.elm
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,6 @@ gatherWith testFn list =
( gathering, remaining ) =
List.partition (testFn toGather) population
in
helper remaining <| ( toGather, gathering ) :: gathered
helper remaining (( toGather, gathering ) :: gathered)
in
helper list []

0 comments on commit 2d0eb64

Please sign in to comment.