elm-community / list-extra

Convenience functions for working with List.
http://package.elm-lang.org/packages/elm-community/list-extra/latest
MIT License
135 stars 59 forks source link

Create splitWhen function that attempts to split a list at the element where the given predicate is true #42

Closed EverybodyKurts closed 7 years ago

EverybodyKurts commented 7 years ago

This started as a found here: #41

Let me know what needs fixed/touched up.

mgold commented 7 years ago

Looks good!

mgold commented 7 years ago

Published as 6.1.0.

BTW, you needed to add splitWhen to the @docs ist. I took care of it for you since I missed it in review. Strangely, it compiled and tested fine; only elm package diff complained.

EverybodyKurts commented 7 years ago

Hooray! Thanks for the checking it out and merging it. This is my first contribution to an Elm library.