Weird thing I found in elm/parser

I found this function in the source code of elm/parser:

isChar : Char -> Bool
isChar char =
  True

Why does this function exist?

I have been writing P.chompIf (\_ -> True) quite a lot recently as it happens. Guaranteed chomping is certainly useful

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.