keywords: Lua, Personal Ordinary Notes

How to get the first item of dictionay
local a = {}
a["test"] = 5
a["asdjh"] = "something"

local key, value = next(a, nil)
print(key, value)

Origin:
https://devforum.roblox.com/t/find-the-first-item-of-a-dictionary/637131/3


“Every form of addiction is bad, no matter whether the narcotic be alcohol, morphine or idealism.” ― Carl Gustav Jung