Kairit Sirts wrote:
> I have a boxed list of strings. For example:
> a =: ;: 'he ha ho he hi he'
...
> Then I have the boxed list of those strings with repetitions removed:
> b =: ~. a
...
> Then I have another boxed list of integer arrays which represents the
> indices from the list a. For example:
>
> +---+-+-+-+
> │1 4│2│3│5│
> +---+-+-+-+
>
> Any suggestion, how to do it?

If c is your boxed list of integers, use
   c {L:0 b i. a
 
Or, if you prefer using each
   c {each <b i. a
 
-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to