Hi,
on doc:
https://dlang.org/phobos/std_container_rbtree.html#.RedBlackTree
I cannot find any search method?! e.g. contains
, canFind
.
Is this a over look? Or there are such functions else where?
Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 13 std.container.rbtree has no search method?! e.g. `contains`, `canFind` | ||||
---|---|---|---|---|
| ||||
Hi, on doc: https://dlang.org/phobos/std_container_rbtree.html#.RedBlackTree I cannot find any search method?! e.g. Is this a over look? Or there are such functions else where? |
July 13 Re: std.container.rbtree has no search method?! e.g. `contains`, `canFind` | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Saturday, 13 July 2024 at 17:41:42 UTC, mw wrote: >I cannot find any search method?! e.g. Is this a over look? Or there are such functions else where? It's the https://dlang.org/phobos/std_container_rbtree.html#.RedBlackTree.opBinaryRight But indeed, the documentation can be clearer about that. |
July 14 Re: std.container.rbtree has no search method?! e.g. `contains`, `canFind` | ||||
---|---|---|---|---|
| ||||
Posted in reply to mw | On Saturday, 13 July 2024 at 17:41:42 UTC, mw wrote: >Hi, on doc: https://dlang.org/phobos/std_container_rbtree.html#.RedBlackTree I cannot find any search method?! e.g. Is this a over look? Or there are such functions else where? The functions are called This was not my choice, my original dcollections implementation used a -Steve |
July 14 Re: std.container.rbtree has no search method?! e.g. `contains`, `canFind` | ||||
---|---|---|---|---|
| ||||
Posted in reply to Steven Schveighoffer | On Sunday, 14 July 2024 at 02:01:44 UTC, Steven Schveighoffer wrote: >On Saturday, 13 July 2024 at 17:41:42 UTC, mw wrote: >Hi, on doc: https://dlang.org/phobos/std_container_rbtree.html#.RedBlackTree I cannot find any search method?! e.g. Is this a over look? Or there are such functions else where? The functions are called This was not my choice, my original dcollections implementation used a -Steve I think for containers, it's better to have uniform naming convention, either |