:sig
function contains(haystack : string, needle : string) bool

:params
haystack : the string to search
needle : the substring to find

:returns
`true` if `needle` occurs in `haystack`. An empty `needle` matches.

:content
`contains()` checks for a substring.

:example capy render
if contains("Capy docs", "docs") { print("yes\n") } else { print("no\n") }

:see-group
strings

:see
find
