You were right
It was my misunderstanding.. Done!

Raul Miller-4 wrote:
> 
> On Tue, Sep 11, 2012 at 12:50 PM, pascha <amirpasha...@gmail.com> wrote:
>> Thanks.. "row_number" works
>> But now the problem is I want the verb to iterate over one array at a
>> time.
>> for example if I do proccess"0(1+i.2) the resultant input is:
>>
>> /home/user/input/filename1.pgm
>> /home/user/input/filename2.pgm
> 
> Not exactly.  The input is:
>   1 2
> 
> And process runs independently for each of those two items.
> 
> So '/home/user/input/filename1.pgm' and
> '/home/user/input/filename2.pgm' do not exist together in the same
> instance of process"0.
> 
>> what I want is to "separately" process each array. In the first iteration
>> I
>> want it to go for
>>
>> /home/user/input/filename1.pgm
>> and when the process finished for the first iteration it goes for the
>> second
>> one:
>> /home/user/input/filename2.pgm
>> and etc. like a loop.
> 
> That's what my original code does.
> 
>> I changed what you've wrote little bit:
>>
>> process=: 3 :0
>>   index =. > y
>>   input=. '/home/filename',":index
>>   input=. input,'.pgm'
>>   input
>> )
>>
>> process"0(,.<"1 ,.(i.2))
>>
>> but still doesn't go for one array at a time, did you get what I mean?
> 
> It does indeed go for one array at a time.
> 
> The issue here is that you have changed the mechanism so the result of
> the process is the input file name.  And the results are preserved, so
> they exist simultaneously.
> 
> -- 
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 

-- 
View this message in context: 
http://old.nabble.com/path-variable-in-loop-tp34413608s24193p34420280.html
Sent from the J Programming mailing list archive at Nabble.com.

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

Reply via email to