Skip to content

[improvement] Support for backward for loop like in python #70

@shazz

Description

@shazz

As a workaround, a js plugin works well but as you implemented the python style for loop style using range(), could be nice to also support backwards loop like

for i in range(10, 0, -1)

Here is my javascript plugin:

module.exports = {
    reverse: ({}, val) => {
        return val.reverse();
    }
}

ex:

!for i in syn.reverse(range(SPRITES_NB)) {
... 	

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions