As initially shown in this topic, the current Expressive Output Window beta is showing arrays via print()
in a non-numerical order.
Repro
- Activate Expressive Output Window beta
- Run this script:
local arr = {}
for i = 1, 10, 1 do
table.insert(arr, "value" .. i*5-1)
end
print("Expressive Window:")
print(arr)
print("For Ipairs:")
for i, v in ipairs(arr) do
print(i, v)
end
- It will show the results like:
The first block is showing the array in a non-numerical order.
The last one should be the correct way to print arrays in Expressive Output Window.