logoalt Hacker News

dlcarrieryesterday at 4:40 PM1 replyview on HN

Lua also let's you start arrays at 3.


Replies

zimpenfishyesterday at 4:58 PM

As does Perl with `$[`[0][1]

[0] "This variable stores the index of the first element in an array, and of the first character in a substring."

[1] With the caveat: 'As of Perl v5.30.0, or under "use v5.16", or "no feature "array_base"", $[ no longer has any effect"'