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.
This package uses elm-test, please read its documentation to know how to run tests.
Please Note that between versions 7.1.0 and 8.0.0 of list List.Extra
the following breaking changes occured:
replaceIf
was renamed tosetIf
unzip4
andunzip5
were removed- The type signature of
foldl1
did not change, but the arguments did.foldl1
takes aa -> a -> a
as a parameter. However, before version 8.0.0 it had the shapeb -> a -> b
and now it isa -> b -> b
. - The
(!!)
operator was removed, as Elm 0.19 no longer permits custom infix operators
Pull requests are welcome. You can expect some kind of response within 5 days.
If you are proposing a new function be added, please adhere to the following..
- Include documentation and make sure your documentation has a code snippet demonstrating what the function does. We use elm-verify-examples in our travis set up which verifies our examples that our example code is correct, so please take advantage of that.
- Provide a detailed use case where your new function would be useful. Also, compare your new function to the best possible implementation that doesn't include use your function.
- 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.