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
How to push elements to an array #285
Comments
You can't. This is a functional language, so you can't change values. You can build new ones, but you can't change the ones that already exist. You need to do something like this:
Now I don't understand what "visited" means in this context, but maybe something like this?
I hope this helps. |
Hello, i am newbie in jslt. I don't know how to transform this type of array of json in jslt. Please i would need your help. And my desired output is this. |
This is a new question, so it would be better to make a new issue for it. I'll answer you here anyway. It's a bit difficult to tell what rules you want to follow here, but I'll make a guess. Maybe like this?
|
Thank you so much for answering my question despite posted to the wrong place. |
Using |
Thank you for the explanation. I am on playground already. I also noticed it's appending comma(,) separator automatically. |
I want to keep a track of visited
productIds
in an array. How do I push elements to an array?I've tried the following code but it is not working.
The text was updated successfully, but these errors were encountered: