Logo

Programming-Idioms

History of Idiom 97 > diff from v13 to v14

Edit summary for version 14 by :
New Haskell implementation by user [JH]

Version 13

2016-01-21, 09:16:07

Version 14

2016-02-16, 18:55:24

Idiom #97 Check string suffix

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

Idiom #97 Check string suffix

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

Imports
import Data.Text
Code
b = suffix `isSuffixOf` s