• pelya@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    In Lua all arrays are just dictionaries with integer keys, a[0] will work just fine. It’s just that all built-in functions will expect arrays that start with index 1.