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

Getting value of an item in Queue? #6

Open
phoenix5k opened this issue Mar 17, 2023 · 2 comments
Open

Getting value of an item in Queue? #6

phoenix5k opened this issue Mar 17, 2023 · 2 comments

Comments

@phoenix5k
Copy link

_item := combosQueue.Grab() println(_item)

This leaves me with just some pointer like 0xc0000501a0 or whatever, how do I get the actual value/

@realTristan
Copy link
Owner

Instead do _item := combosQueue.Grab() println(*_item)

I just pushed a new version though, so if you decide to use the latest version, you can now just do _item := combosQueue.Grab() println(_item)

@phoenix5k
Copy link
Author

Works perfectly. Would also love a function like .Shuffle() to re-locate items randomly in the queue :) Good work, this has saved me a ton of time and headache!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants