2014-5: Mirror Mirror
A palindrome is a word or phrase whose letters read the same forwards and backwards. Write a dfn which returns a 1 if its character vector argument is a palindrome, 0 otherwise. For simplicity's sake, you may assume that the vector is all one case.
Examples:
(your_function) 'a man, a plan, a canal, panama!'
1
(your_function) '' ⍝ a phrase of 0 length is a palindrome
1
(your_function) 'a' ⍝ as is a single letter phrase
1
(your_function) 'APL' ⍝ APL may be cool, but it's not a palindrome
0
your_function ←
Solutions

