hasSuffix
lib.hasSuffix
Docs pulled from | This Revision | about 9 hours ago
Determine whether a string has given suffix.
Inputs
suffix
- Suffix to check for
content
- Input string
Type
hasSuffix :: string -> string -> bool
Examples
lib.strings.hasSuffix
usage example
hasSuffix "foo" "foobar"
=> false
hasSuffix "foo" "barfoo"
=> true