Differences between a list and an array

Hello,

was wondering whats the difference between a list and an array in UiPath. The tutorial says that the list has methods that can be invoked … is that it ? or are there more differences? …

Appreciate your help
Hara

hi @Hara_Gopal

Array is a fixed size, but the size of the list can vary.

Regards
ajay

4 Likes

Can we add/sort elements of an array, or only of a list?

Once the array is declared, it cannot be changed. If it is changed, its address will change, but the list will not

Hi @Hara_Gopal

Arrays are specially optimised for arithmetic computations so if you’re going to perform similar operations you should consider using an array instead of a list. Also lists are containers for elements having differing data types but arrays are used as containers for elements of the same data type.

Thanks
Latika