contains
lib callCapy
function contains(haystack : string, needle : string) bool
Description
contains() checks for a substring.
Parameters
haystack : the string to search
needle : the substring to find
Return Values
true if needle occurs in haystack. An empty needle matches.
Example
Capy
if contains("Capy docs", "docs") { print("yes\n") } else { print("no\n") }