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

Fix documentation #71

Closed pzp1997 closed 7 years ago

pzp1997 commented 7 years ago

Fixes some basic formatting mistakes in the documentation. Also, provides a more realistic example (and test) for iterate.

Chadtech commented 7 years ago

Thanks for fixing the formatting. Could you add a type signature to collatz?

Im indifferent regarding the new example; I dont see it as better or worse. But I'll defer to you on it unless you feel like explaining it.

pzp1997 commented 7 years ago

Added the type signature to collatz.

Sorry for not explaining the example in the initial PR message. I found the old example to be a poor use of iterate because it would be better to use List.range 2010 2030 instead. The collatz example is better because the next value in the sequence depends upon the current value, yet the sequence is not arithmetic or geometric (if it were it would be better to use List.range or List.Extra.initialize).