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
Yes, I miss this a lot. IIRC, the reason we settled on occursin was that we were worried that contains(haystack, needle) confusing element containment with subsequence containment, but I think we already mix that up a bit so maybe it doesn't matter.
Right now we have:
startswith(haystack, needle)
endswith(haystack, needle)
occursin(needle, haystack)
While
occursin(needle, haystack)
is right from the perspective of readingf(a, b)
asa f b
i.e.
needle occursin haystack
It is not consistent with
startwith
orendswith
.Back in julia 0.6 (IIRC) we had
contains(haystack, needle)
which still reads right:
haystack contains needle
.I would like to suggest we bring it back so that we can have that consistency.
This is part of a series of issues relating to invenia/Wrangling.jl#3
Will link others below for cross referencing.
#35032
#35033
The text was updated successfully, but these errors were encountered: