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

added allPass and anyPass #79

Closed ni-ko-o-kin closed 7 years ago

ni-ko-o-kin commented 7 years ago

inspired by ramdas http://ramdajs.com/docs/#allPass and http://ramdajs.com/docs/#anyPass

Chadtech commented 7 years ago

Hey @ni-ko-o-kin

I appreciate the PR and I can see the utility in these functions. However, I dont think it really pertains to list-extra. These functions arent useful for working with lists generally, rather they have some specific application that just happens to use lists.

Its funny you bring this up now tho. I was just thinking about making a Bool-Extra, since I often use functions like allTrue : List Bool -> Bool. It seems like there should be some package out there that would include functions like anyPass and allTrue. Would you mind if I made that package? Or, I could make the package and you could submit a PR just like this one?

ni-ko-o-kin commented 7 years ago

Sure! Let me know when the repository is ready!

Chadtech commented 7 years ago

Awesome. I just set up this repo here: https://github.com/Chadtech/elm-bool-extra . If you make a PR on it, I'll publish the package.

ni-ko-o-kin commented 7 years ago

done

Chadtech commented 7 years ago

And published. I incorporated your changes and got them out as release 1.1.0