query
On this page

hasInfix

lib.hasInfix

Docs pulled from | This Revision | 35 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

lib.strings.hasInfix usage example

hasInfix "bc" "abcd"
=> true
hasInfix "ab" "abcd"
=> true
hasInfix "cd" "abcd"
=> true
hasInfix "foo" "abcd"
=> false
(lib.strings.hasInfix)

Noogle also knows

Aliases