so, if i use:

    index =: indexVector  i. (todayno 2007 3 9)

    $ index
returns nothing
     #index
1
      index - i. -days
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178

Which is what I want without using (+/ index).

My problem was the way in which I was generating the value for index.  The
rank was not proper for using with i.

Still confused, but a little happier.

Nabble is great.  I Raul Millers approaches to finding an index produced
what I needed.



efittery wrote:
> 
> When I use the following:
> 
>           (+/index)- i. -days
> 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
> 
> which is no problem.
> 
> when I use 
>  
>      index - i. -days
> |length error
> |   index    -i.-days
> 
> I finally figured out that (+/index) would return me an argument which I
> could feed to i.
> 
> So,
> 
>    $index
> 1
>    #index
> 1
> 
> which is different than (+/index) meaning that
> 
>      $ (+/index)
> returns nothing
>       #(+/index)
> 1
> 
> I am confused, but is my newbie hack around the problem reasonable?
> 
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/using-i.-problems-tf4864081s24193.html#a13919972
Sent from the J General mailing list archive at Nabble.com.

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

Reply via email to