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

Array concatenation behaves strangely with += shortcut #37

Closed
Zichqec opened this issue Sep 9, 2022 · 0 comments
Closed

Array concatenation behaves strangely with += shortcut #37

Zichqec opened this issue Sep 9, 2022 · 0 comments
Labels

Comments

@Zichqec
Copy link
Contributor

Zichqec commented Sep 9, 2022

OnTest
{
    _let = ("A","B","C")
    _num = ("1","2","3")
    
    _let = _let + _num
    _let
}

↑ This function outputs "A1","A2","A3","B1","B2","B3","C1","C2","C3", which is the desired output.

OnTest
{
    _let = ("A","B","C")
    _num = ("1","2","3")
    
    _let += _num
    _let
}

↑ This function outputs "A123","B123","C123" instead.

ponapalt added a commit that referenced this issue Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants