query
On this page

hasInfix

lib.hasInfix

Docs pulled from | This Revision | about 1 hour 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
(lib.strings.hasInfix)

Noogle also knows

Aliases