Docs for Url.Parser.Query.custom mention non-existing List.maybeMap
Janiczek opened this issue · 2 comments
Janiczek commented
https://package.elm-lang.org/packages/elm/url/latest/Url-Parser-Query#custom
This is the example in the documentation:
posts : Parser (Maybe (List Int))
posts =
custom "post" (List.maybeMap String.toInt)
-- ?post=2 == [2]
-- ?post=2&post=7 == [2, 7]
-- ?post=2&post=x == [2]
-- ?hats=2 == []
List.maybeMap
doesn't exist.
sethlivingston commented
The correct function is List.filterMap. The PR fixes the docs.