# Better Array Manipulation

**URL:** <https://forum.universal-robots.com/t/better-array-manipulation/4565>\
**Category:** Product Wishlist\
**Created:** [June 20, 2019, 8:42am UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565 "2019-06-20T08:42:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam.verity-hilton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sam.verity-hilton/32/6046_2.png) [@sam.verity-hilton](https://forum.universal-robots.com/u/sam.verity-hilton)\
**Post date:** [June 20, 2019, 8:42am UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565/1 "2019-06-20T08:42:56Z")

</div>

It would be really nice to have a wider range of functions with which to manipulate arrays. In python there are a few really helpful array manipulation functions, and seeing some of these in URScript would be really useful. Especially the ability to dynamically change the size of an array by adding and removing elements, and the ability to generate an “empty” (null or 0) array of a given size. See more information about the common python array functions [here](https://stackoverflow.com/questions/2910864/in-python-how-can-i-declare-a-dynamic-array)

---

<div class="post-metadata">

**Author:** ![m.birkholz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/m.birkholz/32/7084_2.png) [@m.birkholz](https://forum.universal-robots.com/u/m.birkholz)\
**Post date:** [June 20, 2019, 11:04am UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565/2 "2019-06-20T11:04:57Z")

</div>

The ability to use multi-dimensional Arrays for e.g. Rotation Matrices would also be very nice

---

<div class="post-metadata">

**Author:** ![sophia.rose.zitkus](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sophia.rose.zitkus](https://forum.universal-robots.com/u/sophia.rose.zitkus)\
**Post date:** [December 8, 2021, 3:00pm UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565/3 "2021-12-08T15:00:14Z")

</div>

Bumping this feature request. Better array manipulation similar to basic manipulation in MATLAB or as Sam mentioned above in python would make my life a lot easier!

---

<div class="post-metadata">

**Author:** ![m.hammerton](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@m.hammerton](https://forum.universal-robots.com/u/m.hammerton)\
**Post date:** [August 15, 2022, 7:11am UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565/4 "2022-08-15T07:11:15Z")

</div>

Bump.  
I’d love to have better Array manipulation.  
guessing the size of an array I might need is ridiculous.  
what we need is the ability to increase and decrease the size as we go along.

---

<div class="post-metadata">

**Author:** ![terryc](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/terryc/32/3006_2.png) [@terryc](https://forum.universal-robots.com/u/terryc)\
**Post date:** [August 15, 2022, 4:32pm UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565/5 "2022-08-15T16:32:56Z")

</div>

☹  
hopefully this tides you over

> [@URScript initialise array of given length](https://forum.universal-robots.com/t/urscript-initialise-array-of-given-length/6869):
>
> I want to create a function in my installation node that gets a string of comma separated values and returns them as an array. The only thing I’m missing is how to initialise an array of unknown size. Like when on any programming language you do something like new\_array[10] Is this at all possible on URScripts?

---

<div class="post-metadata">

**Author:** ![sam.verity-hilton](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sam.verity-hilton/32/6046_2.png) [@sam.verity-hilton](https://forum.universal-robots.com/u/sam.verity-hilton)\
**Post date:** [August 31, 2023, 10:29am UTC](https://forum.universal-robots.com/t/better-array-manipulation/4565/6 "2023-08-31T10:29:01Z")

</div>

Looks like my prayers have finally been answered, and this functionality is finally on the way!! Thanks to UR for finally implementing this, it will make so many things so much easier.

[Variable length lists announced](https://forum.universal-robots.com/t/request-for-comments-variable-length-lists/30144)
