Julia: Combine `contains` and `ismatch`?

Created on 7 Nov 2016  路  5Comments  路  Source: JuliaLang/julia

ismatch and contains do basically the same thing, except the first takes a regex pattern, the second a string pattern, and the argument order is switched.

Can we combine them, and if so, which one should we keep?

search & find strings

Most helpful comment

(let's try a vote by thumbs up)

contains

  • matches the argument order of replace (which already accepts both regexes and strings)

All 5 comments

See also #10593

(let's try a vote by thumbs up)

contains

  • matches the argument order of replace (which already accepts both regexes and strings)

ismatch

  • begins with is (making it easy to find by tab completion)
  • matches the argument order of match

See also discussion in #18028.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sbromberger picture sbromberger  路  3Comments

yurivish picture yurivish  路  3Comments

i-apellaniz picture i-apellaniz  路  3Comments

ararslan picture ararslan  路  3Comments

omus picture omus  路  3Comments