I hope someone can enlighten me… If I have a list of numbers, how can I write a verb which will can perform a cumulative sum +/\ which will stop when a target sum is reached?
For example, is the list contains 1,5,6,16… I wish to find at what position the cumulative sum exceeds 10. I feel that when I am dealing with monster lists, it would be beneficial if the function could stop as soon as the target had been reached. (If the target was not reached by the end of the list, it would be good if the index of 1 greater than the last item could be returned, as occurs with other j verbs). Thanks in advance, Richard Donovan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm