|
case indexOf (wrap str) input of |
|
Just 0 -> do |
Does this scan all the way to the end of the input string, looking for a match, even though it already knows it failed when it doesn't find a match at index 0? If that's what it's doing, that would be very inefficient.
purescript-parsing/src/Text/Parsing/Parser/String.purs
Lines 43 to 44 in e801a0e
Does this scan all the way to the end of the input string, looking for a match, even though it already knows it failed when it doesn't find a match at index 0? If that's what it's doing, that would be very inefficient.