Giter Club home page Giter Club logo

Comments (3)

SMFSW avatar SMFSW commented on August 16, 2024

Hello,

Well, you can probably make a loop (limited to q.nbRecs) as you said using q.peekIdx method to get every values to check.
But... a queue is not a list of elements, it is designed to be used as FIFO or LIFO, thus you can peek records to see if new record has to be stored in the queue, but you can't remove a record at any desired index.
Some kind of workaround for you would be flushing the whole queue (with q.flush), or if in need of a circular buffer, using FIFO implementation with overwrite=true might work too (without the need to pull items from queue).

Please keep in mind an issue tracker is not a place to ask for implementation help (there are lots of forums for that (eg. stack exchange)) but to raise bugs/issues or ask for improvements / new functionalities.

Regards,
SMFSW

from queue.

aliceesiee avatar aliceesiee commented on August 16, 2024

Thanks for the answer and sorry for the misusing of the issue tracker !

from queue.

SMFSW avatar SMFSW commented on August 16, 2024

Glad if I was able to help!

If needed, my libraries includes a contact email in README.md.

Closing the issue for now,

Regards,
SMFSW

from queue.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.