Hi,
just an attempt .... how about:
linecount=:+/&.:<:@:(*/\)@:}:@$ NB. considers rank1 as 1 display line
linecount i.6 3 5 2
112
linecount i.6 3 5
23
linecount i.6
1
Regards,
> Message: 10
> Date: Fri, 02 Apr 2010 14:20:16 -0700
> From: Roger Hui<[email protected]>
> Subject: [Jprogramming] lines in display
> To: Programming forum<[email protected]>
> Message-ID:<[email protected]>
> Content-Type: text/plain; charset=iso-8859-1
>
> If x is a rank 2 or higher numeric array, how many
> lines are in the display of x?? For example,
> there are 14 lines in the display of? i. 3 4 5 .
>
> I've worked on a related problem on-and-off for years,
> starting in 1991, and only came to a good answer
> for this problem just a few days ago.
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm