John Saunders wrote:
>  |.": y = ":y

Just so you know, this expression doesn't test for palindromes.

The issue is that J evaluates right-to-left, so the above expression is
equivalent to:

   |.": (y = ":y)

Contrast this with:

   (|.": y) = ":y

which is a palindrome test.

-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to