When I have an array with units and groups like :
_units = [unit1,unit2,grp1,grp1,grp3]
...what is the fastest and easiest way to put every single unit in new array (_allunits =[]) ?
So when grp1,grp2 and grp3 contains 4 units ,_allunits should store 14 units (4+4+4+2=14)
I always do it with a cycle loop but is there a one line code with an if-then- else statement? :-\