经典的回文判断问题
Write a function which returns true if the given sequence is a palindrome.
Hint: "racecar" does not equal '(\r \a \c \e \c \a \r)
(fn [all]
(let [rev (reverse all)
len (count all)
flen (inc (int (/ len 2)))]
(every? true? (map (fn [x]
(= (nth rev x)
(nth all x))
) (range flen)))
)
)