elm-community/list-extra/8.0.0

NOTE: the latest version is 8.7.0

Convenience functions for working with List

Build Status

Experimental package with convenience functions for working with List. Note that this API is experimental and likely to go through many more iterations.

Feedback and contributions are very welcome.

Run tests

This package uses elm-test, please read its documentation to know how to run tests.

Breaking Changes

Please Note that between versions 7.1.0 and 8.0.0 of list List.Extra the following breaking changes occured:

  1. replaceIf was renamed to setIf
  2. unzip4 and unzip5 were removed
  3. The type signature of foldl1 did not change, but the arguments did. foldl1 takes a a -> a -> a, and befor version 8.0.0 it was b -> a -> b and now it is a -> b -> b
  4. The (!!) operator was removed, as Elm 0.19 no longer permits custom infix operators

Contributing

Pull requests are welcome. You can expect some kind of response within 5 days.

If you are adding a new function please..

  1. Include documentation and make sure it has a code snippet demonstrating what the function does.
  2. Give a detailed use case where your function would come in handy in the PR.
  3. Add tests to Tests/Tests.elm

If you are improving existing functions please demonstrate the performance gains in something like Ellie and by using a benchmark library like this one.