Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.
Wiring an array (1 D) to a For Loop's Count (N) Terminal would automatically set the number of iterations to the array size. This would avoid having to insert an Array Size primitive to accomplish that.
I'm not sure why you would need that. If you wire a 1-D array to an auto-indexing tunnel of the For Loop, it implicitly sets the number of iterations to the number of elements in the array.
A loop runs only as many times as the smallest array that is autoindexed into it, or the value N wired in. If it didn't, what would you want out of an array on iteration 10 if the auto-indexed array only had 7 elements?
I still don't see a point to this request. If you want the loop to iterate for the number of elements in the array, use the auto index input. If you still want to pass the whole array in, use the example above.
There have been times when one of the arrays wired to the loop had with fewer elements than I ultimately wanted (perhaps it was initialized with zero size and/or more elements were being added to it within the loop) and therefore it would have been the limiting N loop count.
2) The smallest of any autoindexing arrays used as input.
Allowing to connect to the N terminal allows the user to unambiguously set the number of iterations regardless of the contents of other arrays which may also be set to autoindex.
i like how it's working now. If you have more than one autoindexed array, then you can use the "reshape array" function to make sure, they all have the same size.
Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.