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

`group` example in docs returns wrong type #111

Closed Janiczek closed 6 years ago

Janiczek commented 6 years ago

group returns List (a, List a) but the example doesn't reflect that:

group  [1,2,2,3,3,3,2,2,1] == [[1],[2,2],[3,3,3],[2,2],[1]]
Chadtech commented 6 years ago

Thanks! I didnt notice this. Yeah in 8.0.0 the group functions changed pretty fundamentally. I'll fix this soon.

pzp1997 commented 6 years ago

I think we should start using elm-verify-examples so that this will not happen in the future. See issue #50.

Chadtech commented 6 years ago

Sounds good to me. Ilias recommended that too. Lets do it.

Chadtech commented 6 years ago

We are using elm-verify-examples now, and this particular issue was resolved.