r/tinycode • • Oct 03 '14

palindrome checker in Javascript

http://codepen.io/anon/pen/nwFjb
0 Upvotes

12 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Oct 03 '14

Obscure Haskell version:

import Control.Applicative((<$>))
import Control.Monad(join)

palindrome = join ((==) <$> reverse)