#N canvas 310 0 507 682 10; #X obj 1 1 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X obj 5 419 cnv 15 500 17 empty empty empty 20 12 0 14 -228992 -66577 0; #X obj 3 328 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X obj 3 351 cnv 15 60 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X text 204 421 Outlets (1); #X obj 4 503 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X obj 5 440 cnv 15 60 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X text 6 464 GRID; #X text 393 2 GridFlow 0.8.4; #X text 8 352 Inlet 0; #X obj 4 532 cnv 15 80 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X text 8 533 Argument 0; #X obj 27 219 cnv 15 52 17 empty empty empty 20 12 0 14 -241291 -66577 0; #X text 9 441 Outlet 0; #X obj 11 2 #fold +; #X obj 98 184 display; #X obj 29 252 display; #X text 26 38 Treats the grid as a grid of one- dimensional grids such that the same operation (here addition) will be performed on all its elements together with the base value. the results are combined back. each #fold operation removes a dimension. syntax: #fold ; #X text 205 330 Inlets (1); #X obj 143 249 #export; #X obj 143 274 print values; #X text 4 378 GRID; #X text 6 651 some other forms:; #X obj 140 652 #fold *; #X text 200 504 Arguments (); #X obj 17 625 #fold + \, seed 0; #X obj 4 583 cnv 15 500 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X text 200 584 Attribute (); #X obj 211 652 #fold ^; #X obj 284 652 #fold &; #X obj 355 652 #fold |; #N canvas 0 0 450 300 more 0; #X obj 29 137 cnv 15 148 17 empty empty empty 20 12 0 14 -241291 -66577 0; #X obj 98 82 display; #X obj 28 48 #import (2 2 2); #X obj 29 170 display; #X msg 28 27 1 3 1 3 1 3 1 5; #X text 154 24 <-- clicking here creates a grid through [#import]; #X obj 122 170 #export; #X obj 122 195 print values; #X obj 28 137 #fold + \, seed ( 0 0 ); #X connect 2 0 1 0; #X connect 2 0 8 0; #X connect 4 0 2 0; #X connect 6 0 7 0; #X connect 8 0 3 0; #X connect 8 0 6 0; #X restore 160 624 pd more info; #X text 71 464 Outputs a grid of one less dimension.; #X text 69 377 Accepts a grid of a minimum of one dimension.; #X msg 28 129 1 3 1 3 1 3 1 3 1 3 1 5; #X obj 28 153 #import (2 3 2); #X obj 28 219 #fold +; #X text 203 129 <-- clicking here creates a grid through [#import] ; #X text 6 556 Numeric Operator; #X text 131 555 guiding the application of the fold.; #X connect 19 0 20 0; #X connect 34 0 35 0; #X connect 35 0 15 0; #X connect 35 0 36 0; #X connect 36 0 16 0; #X connect 36 0 19 0;