Signature: contains(haystack: string, needle: string) -> bool
Description: Checks if a string contains a substring.
Parameters #
- haystack (string): The string to search in
- needle (string): The substring to search for
Returns: Result[bool, Error]
Example #
let found = contains("hello world", "world")
print(found) // Prints: true