query
On this page

hasInfix

lib.strings.hasInfix

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

Noogle also knows

Aliases