Skip to content

Conversation

ricardbejarano
Copy link

@ricardbejarano ricardbejarano commented Oct 23, 2024

This enables reverse indexing of array values by using negative indexes.

Before:

> local a = [1,2,3];
> a[std.length(a)-1]
3

After:

> [1,2,3][-1]
3

@ricardbejarano
Copy link
Author

Anyone? I think this is pretty straightforward to evaluate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant