I wanted to generalize this
(]`(]>.2+[)`(]<.2*[))@.(*...@-)/\. ?.#~10 10 10 11 4 8 11 0 9 0 4 such that more values than 2 could be applied and came up with 2 3 5 (4 : '(]`(]>.x+[)`(]<.x*[))@.(*...@-)/\.y')"0 _ ?.#~10 10 10 11 4 8 11 0 9 0 4 12 12 12 6 12 12 0 10 0 4 10 10 10 10 14 14 0 12 0 4 It does the job but this is a simplified example and actually x and y have much more items and the gerund is more complicated as well. So scanning the complete y for every atom of x does not seem very efficient. Is there a more J-ish, efficient and/or elegant way to do this? R.E. Boss Note: sometimes it is stated that J might not be the most efficient programming language, but the higher productivity of a J-programmer should compensate that. This might be a counterexample, since I have already spent some time and still don't have a neat solution. But perhaps the wisdom of the crowd can help. Extra: for the 'taciti' out there, find a tacit solution. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
