You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, contains could be integrated to the find* family of functions. We could keep it as a convenience function, with a fallback to something like findfirst(sequence(needle), haystack) > 0.
See also #19250 and #18028. I think we should get rid of ismatch which is quite restrictive as it only works with regular expressions, and merge it with contains. This appears to be the consensus.
My only slight concern is that find* works with indices, and there could be cases where a sequence doesn't have indices or where it's more expensive to determine an index than to determine whether a match exists. But find* works for all current cases, so we can go ahead with switching to find*, and possibly add an issubseq that defaults to calling find(needle, haystack) > 0.
I'd have expected the following to work:
having the same meaning as it does for strings.
The text was updated successfully, but these errors were encountered: