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

Containers versus values in a capture trap #4539

Open
bo-tato opened this issue Dec 2, 2024 · 0 comments
Open

Containers versus values in a capture trap #4539

bo-tato opened this issue Dec 2, 2024 · 0 comments
Labels
docs Documentation issue (primary issue type)

Comments

@bo-tato
Copy link

bo-tato commented Dec 2, 2024

In the documentation here: https://docs.raku.org/language/traps#Traps_to_avoid
It gives some sample code of a common problem and suggests changing to @arr.push: ($a.item, $b.item); as a fix. However, that doesn't change anything, the programs output is exactly the same as before.
Changing it to the decontainerize operator: @arr.push: ($a<>, $b<>); does give the desired result.
Edit: maybe the behaviour of .item has changed since the documentation was written, I am using Rakudo™ Star v2024.10. v6.d

@bo-tato bo-tato added the docs Documentation issue (primary issue type) label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

1 participant