palindrome detection palindrome [duplicate]

Write a function with a single string parameter and a boolean return value. The function should return true iff the string is a palindrome character-wise.

Alternatively, write a program that reads a string from standard input and writes 1/0 to standard output depending on whether the string is palindrome or not.

The code itself should be a palindrome. The structure of the code visually documents what the code is about.

Since this is all about beauty of code, the code with the most votes wins.

• @KendallFrey you are right... I mistakenly searched for palyndrome with y. – Erel Segal-Halevi Jan 29 '14 at 15:13
• Would adding another constraint make the question unique enough? I notice that most of the solutions to the other problem use comments. I think it would be interesting to see a challenge where comments are forbidden. – Josh Jan 29 '14 at 15:20
• @Josh good point, but I see the duplicate question already has some very nice answers without using comments. – Erel Segal-Halevi Jan 29 '14 at 15:27
• Maybe mirroring, without using comments? - ( -> ), [ -> ], etc. – eithed Jan 29 '14 at 16:51