isSuffixOf x y == reverse x `isPrefixOf` reverse yHowever, the real implemenation uses memcmp to compare the end of the string only, with no reverse required..
isSuffixOf x y == reverse x `isPrefixOf` reverse y
>>> "ld!" `isSuffixOf` "Hello World!" True
>>> "World" `isSuffixOf` "Hello World!" False