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

[Module std.container.rbtree] inadequate documentation #10409

Open
dlangBugzillaToGithub opened this issue Mar 7, 2020 · 0 comments
Open

[Module std.container.rbtree] inadequate documentation #10409

dlangBugzillaToGithub opened this issue Mar 7, 2020 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

mark reported this on 2020-03-07T15:38:48Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=20646

Description

Every one of the examples shown at the top of the page uses the redBlackTree function which takes a sequence of items.

There isn't a single example that begins with an empty tree or that uses new. Yet, because RedBlackTree is a class, you _must_ use new to create a new empty tree.

I think there should be at least one example showing how to create an empty tree, and then populate it with some values.
@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants