Skip to content

container/heap: add simple example #4331

@rsc

Description

@rsc
The priority queue example is fine but very complex. I have heard of people copying and
pasting it (because it is unclear how to use the package otherwise) and having all the
code to maintain those index fields even if they were never used.

Two things to do:

1) Write a simple example. Make it first.
2) Make the complex example actually use the functionality the index field is allowing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeSuggestedIssues that may be good for new contributors looking for work to do.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions