Linda,
The fact that h produces a table is annoying to me sometimes. It turns out
that the problem can be avoided by using { instead of }: and }. as defined
in j next.
j=:0&{"1 f 1&{"1
j A
0 0.666667 0.8 0.857143
On Thu, May 1, 2014 at 5:07 AM, Linda Alvord <[email protected]>wrote:
> ]A=:i.4 2
> 0 1
> 2 3
> 4 5
> 6 7
> f=: %
> g=: [: f/ |:
> g A
> 0 0.666667 0.8 0.857143
>
> The result using g is a list.
>
> h=:}:"1 f }."1
> h A
> 0
> 0.666667
> 0.8
> 0.857143
>
> But the result using h is a table.
>
> Linda
>
> :
>
>
--
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm