world << length( list() + list() )
returns 0, while
world << length( list() + 1 )
returns 1.</<></<>
ID:1955482
Oct 4 2015, 10:07 pm
|
|||||||||||||
Not a bug
| |||||||||||||
You cannot get a lists proper length if there are lists inside that list, see:
world << length( list() + list() ) returns 0, while world << length( list() + 1 ) returns 1.</<></<> |
If that is truly the case, then .Add does the same thing and there is no way to properly append a list to another list without manual math.
|
In response to Ter13
|
|
Ter13 wrote:
l1[++l1.len] = l2 Also, if you fancy yourself a meatball: l1 += (istype(l2, /list) ? list(l2) : l2) |
"list() + 1" adds the element "1" to a list. You end up with list(1).