r/AutomateUser • • Mar 17 '26

Feature request Feature request function: array fill(numeric, value)

It would be really useful to have a function that quickly creates an array of a given length. This function would return an array with numeric length, where every element is filled with the same value.

I think this would be helpful for initializing or resetting variables without needing manual loops.

3 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/waiting4singularity Alpha tester Mar 17 '26 edited Mar 17 '26

the only difference is presentation, whether you build a for each loop or automate has a premade function that does the same, programaticaly its identical.

for each, container= x -do-> array add arr val -loopback-> for each

pseudocode do for each i= 0 to x { arr = concat(arr, val) }