Toot

Written by Marc on 2025-01-23 at 12:29

Tbf this is only weird when you're thinking of lua as having arrays at all, which it doesn't. It's basically the same in python and doesn't look so weird.

a = {}
for i in range(-5, 5):
    a[i] = i
for i in range(-5, 5):
    print(a[i])

=> More informations about this toot | View the thread | More toots from mdiluz@mastodon.gamedev.place

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113877670917094145
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
217.180226 milliseconds
Gemini-to-HTML Time
0.747578 milliseconds

This content has been proxied by September (3851b).