Skip to content

Conversation

@UnderscoreTud
Copy link
Member

Problem

When looping trying to loop in reverse, Skript constructs a whole new array in reverse order then loops it

Solution

Implement the iterator method for ExprReversedList that iterates over the array in reverse order without constructing a new array

Testing Completed

ExprReversedList.sk and manual testing

Supporting Information


Completes: none
Related: none
AI assistance: none

@UnderscoreTud UnderscoreTud requested a review from a team as a code owner December 30, 2025 01:16
@UnderscoreTud UnderscoreTud added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Dec 30, 2025
@UnderscoreTud UnderscoreTud requested review from Burbulinis and TheMug06 and removed request for a team December 30, 2025 01:16
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Dec 30, 2025
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea tud
we should be implementing iterator more often tbh

@skriptlang-automation skriptlang-automation bot added patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. and removed needs reviews A PR that needs additional reviews labels Dec 30, 2025
@github-project-automation github-project-automation bot moved this to Awaiting Merge in 2.14 Releases Dec 30, 2025
@sovdeeth sovdeeth merged commit 904cfa2 into dev/patch Dec 31, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Awaiting Merge to Done - Awaiting Release in 2.14 Releases Dec 31, 2025
@skriptlang-automation skriptlang-automation bot added completed The issue has been fully resolved and the change will be in the next Skript update. and removed patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. labels Dec 31, 2025
@APickledWalrus APickledWalrus moved this from Done - Awaiting Release to Done - Released in 2.14 Releases Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something.

Projects

Status: Done - Released

Development

Successfully merging this pull request may close these issues.

5 participants