Hi! Probably my problem arised due to little experience in J, but anyway, here it is.
I have a boxed list of strings. For example: a =: ;: 'he ha ho he hi he' ---T--T--T--T--T--┐ │he│ha│ho│he│hi│he│ L--+--+--+--+--+--- Then I have the boxed list of those strings with repetitions removed: b =: ~. a ---T--T--T--┐ │he│ha│ho│hi│ L--+--+--+--- Then I have another boxed list of integer arrays which represents the indices from the list a. For example: ----T-T-T-┐ │1 4│2│3│5│ L---+-+-+-- What I need to do, is to replace those indexes with the indexes of respective elements from b. First element of this list containing indexes 1 4 refers to items 'ha' and 'hi' in list a. I want it to refer to the same elements in list b, which have indexes 1 3 there. I have tried to do that and ended up with nasty solutions with lots of unboxig, removing fills, then boxing again. Probably there should be some nice solution with using "each", but I couldn't figure it out. Any suggestion, how to do it? Kairit ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
