Closed mthiems closed 4 years ago
In version 8.2.2 Small example, shown in repl:
> List.Extra.isInfixOf [1,2] [1,3,1,2] False : Bool
It should return True .
True
The problem is that the implementation switches to isPrefixOf as soon as a single item matches.
isPrefixOf
Good catch! I just opened a PR with a fix.
Thank you @mthiems for reporting. And thank you @pzp1997 for fixing.
In version 8.2.2 Small example, shown in repl:
It should return
True
.The problem is that the implementation switches to
isPrefixOf
as soon as a single item matches.