Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Update Array Editing #2554

Open
CrowbarToolsRobot opened this issue May 10, 2024 · 0 comments
Open

[Feature Request] Update Array Editing #2554

CrowbarToolsRobot opened this issue May 10, 2024 · 0 comments
Labels
Enhancement A feature request or improvement
Projects

Comments

@CrowbarToolsRobot
Copy link
Collaborator

plurninja via Discord:

Am I blind, or is there no way to insert/replace into arrays? I was about to make a feature request, but want to make sure I'm not just being silly. For example, the $arrayAdd[array, new-item, at-start] seems weird to me that we are using a boolean for the at-start. I feel like an int index would work better. I've basically had to make a really convoluted mess of custom variables just to get the logic of at-start = if (i == null || i is outofbounds then false) else if (i == 0 then true) otherwise -> split array at index i, add element, re-add split array after index i if inserting || i+1 if replacing

@CrowbarToolsRobot CrowbarToolsRobot added the Enhancement A feature request or improvement label May 10, 2024
@github-actions github-actions bot added this to Backlog in Work Status May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A feature request or improvement
Projects
Work Status
  
Backlog
Development

No branches or pull requests

1 participant