NB. the implementation of list_z_ seems to invoke this special case for x
and y
(4 !: 1)0 1 2 3
┌─┬─┬─┐
│x│y│z│
└─┴─┴─┘
names
list_z_@nl
list_z_
3 : 0
w=. {.wcsize''
w list y
:
if. 0=#y do. i.0 0 return. end.
if. 2>#$y=. >y do.
d=. (' ',LF) {~ LF e. y=. toJ ": y
y=. [;._2 y, d #~ d ~: {: y
end.
y=. y-. ' '{.~ c=. {:$ y=. (": y),.' '
(- 1>. <. x % c) ;\ <"1 y
)
On Thu, Jul 5, 2012 at 4:20 PM, ed bierly <[email protected]> wrote:
> NB. http://www.jsoftware.com/docs/help701/learning/24.htm
>
> (0 !: 0) < 'economic.ijs'
>
> names''
> p s
>
> y
> 1932 1934 1957 1969 1972
>
> NB. something about x and y only?
>
> (0 : 0) (1 !: 2) < 'test.ijs'
> x=:'ed'
> y=:'is'
> z=:'confused'
> )
> clear'base'
>
> names''
> (0 !: 0) < 'test.ijs'
> names''
> z
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm