# contains? Check if a string contains a substring (predicate — returns a boolean; use `in?` to test membership in a list or set). ## Syntax
[contains? $string $substring]
## Examples
[contains? "hello world" "world"]   # true
[contains? "hello" "xyz"]           # false
[contains? "hello" ""]              # true (empty needle)
## Returns Boolean. ## See Also `starts-with?`, `ends-with?`, `in?`, `index-of`