On 7/19/06, Lorin Lund <[EMAIL PROTECTED]> wrote:
I've seen several places where we are warned against counting on any particular order of operation in processing elements of a list or array. But when a state-ful traversal of a list makes sense to me I would like to be able to tell the interpreter that I want the traversal to be in order. There are already language elements that affect the execution of some verbs (like fit and fill specifications). Could something like that be established to force sequential traversal of an array? The only alternative I currently see is using 'for loops' to force the order.
Prefix and Suffix /. and \. might be options. Suffix even has special coding to support operations like u/\. Unfortunately afaik you would end up generating a vector in order to preserve only the first element and thus lose the efficiency, while preserving the order. -/\.n would have a defined meaning, though be less efficient than -/n , which is undefined. ~greg ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
