Is there a plan for arrays?
I was working on a function that required an array of varribles that I build as I loop over data. Is there a plan for this? A input node greater than 8, a way to append to the data array etc. this would make it easier to do more with the functions for advanced usage.
-
You can loop over things using counters, but yeah I hope they add more variable functionality.
-
I just want to say, yes, please add some complex data types! I have ideas that can only realistically be realised with a multi-dimensional array of numbers.
-
One way to make a two dimensional array: do it in physical space.
Create an NxM matrix of cubes. Creates another cube to be your "head" which is used to read and write to the matrix.
Index them using the x and y coordinate, corresponding to 0 through N and 0 through M.
Store values in them using color- use just one channel, such as red. This allows you to store a number from zero to one in each of them.
Set the logic on the head so it can go to location x,y given two inputs. A directional, narrow wireless receiver can read whats on the square below it. A little more logic can write to it and change the color.
Setting them to non collidable, invisible, and looser can help the optimization. -
Dr_murk I did consider that. I think that’s the only method right now.
-
'@dr_murk, thank you for the suggestion of using physical space. Have you seen any implementations in the Dreamiverse?
댓글을 남기려면 로그인하세요.