Henry Rich wrote: > -.~/@(|. */ >:)@:>:@:i. > This is obviously a shorter solution to the problem, but I would argue it is less readable than Dan's original posting, even though it is readable in the broader sense.
I tend to favor @: over unbroken trains, and I think that helps in your posting. There are a couple of points that will throw a reader. 1. We are calculating all products of a list with itself. The |. is obviously lining them up in some order, but why? 2. While using -. is good, I bet most readers do not know the ranks (0 _ _) and then (list)-.(table) could be anyone's guess. I think Dan's original question was not completely formed. If you are talking about readability, you need to know the audience. I believe the important audience is intermediate J users, who can write explicit functions and do some simple tacit programming, and who want to get further. Best wishes, John ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
