Logo

Programming-Idioms

History of Idiom 97 > diff from v33 to v34

Edit summary for version 34 by schuelermine:
[Haskell] changed infix to prefix notation

Version 33

2019-02-02, 02:51:41

Version 34

2019-06-07, 10:27:42

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration

Idiom #97 Check string suffix

Set boolean b to true if string s ends with string suffix, false otherwise.

Illustration
Extra Keywords
tail
Extra Keywords
tail
Imports
import Data.Text
Imports
import Data.Text
Code
b = suffix `isSuffixOf` s
Code
b = isSuffixOf suffix s