This is the pattern of monadic "dapply", see Distributed Apply http://www.jsoftware.com/jwiki/Essays/Distributed_Apply
In general, Robert Bernecky called it "MIMD (Multiple-Instruction, Multiple-Data), concurrent application of a collection of functions to arrays of data". It may be perceived to be naturally attainable in J or APL. A related area is simultaneous application of function(s) to a collection of objects. --- "Miller, Raul D" <[EMAIL PROTECTED]> wrote: > Mike Powell wrote: > > b =: 0 1 1 0 1 1 > > g=:+/`$ > > list=:1 2;3 4 5 6;8 8 8; 9 2 4 1 3;1 2; 5 5 5 5 5 > > b [EMAIL PROTECTED]@.[&.> list > > (this uses the undocumented [EMAIL PROTECTED] notation). > > > 3;4;3;19;2;5 > > Except, it's not quite that -- the result of $ is a > one element list, so your result is really > 3;(,4);(,3);19;(,1);(,1) > > Or you could change g to +/`# > > -- > Raul __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
