Skip to content

Ideas for additional methods #35

Open
@gammazero

Description

Continued from #28, from @rickb777

Here are some ideas for methods that you could add:

  • push and insert slices - i.e. internalise the loop needed and reduce loop overhead
  • add adaptors for the PopBack, PopFront and At methods to provide iterators (Go 1.23)
  • add Full() bool method - a shortcut for q.Len() == q.Cap() which would be useful for anyone wanting to impose a maximum size or avoid resizing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions