mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
447 B
447 B
META
description=Str.contains should work with various string combinations
type=repl
SOURCE
» Str.contains("foobarbaz", "bar")
» Str.contains("apple", "orange")
» Str.contains("anything", "")
» Str.contains("hello world", "hello")
» Str.contains("hello world", "world")
» Str.contains("test", "test")
» Str.contains("", "hello")
OUTPUT
True
False
True
True
True
True
False
PROBLEMS
NIL