hasInfix
lib.hasInfix
Docs pulled from | This Revision | 21 minutes ago
Determine whether a string contains the given infix
Inputs
infix
-
1. Function argument
content
-
2. Function argument
Type
hasInfix :: string -> string -> bool
Examples
hasInfix
usage example
hasInfix "bc" "abcd"
=> true
hasInfix "ab" "abcd"
=> true
hasInfix "cd" "abcd"
=> true
hasInfix "foo" "abcd"
=> false