core :: Text :: has
self
pattern
assert "hello".has('l') assert "hello".has("ll") assert not "hello".has("lll")
# Does `self` contains at least one instance of `pattern`? # # assert "hello".has('l') # assert "hello".has("ll") # assert not "hello".has("lll") fun has(pattern: Pattern): Bool do return pattern.is_in(self)