Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd a contains method to VecDeque and LinkedList #1552
Conversation
sfackler
self-assigned this
Mar 22, 2016
sfackler
added
the
T-libs
label
Mar 22, 2016
This comment has been minimized.
This comment has been minimized.
main--
commented
Mar 22, 2016
It's appropriate for most collections, so I'd suggest adding it to |
This comment has been minimized.
This comment has been minimized.
While it definitely makes sense to do so, we already have an inconsistency here: there already is a
I also want to avoid creating many solutions for one programming task. I can already imagine confused students, asking about the difference of I'm not overly happy with the current system due to inconsistencies, but I think adding |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Note, though, that the libs team also figured that small RFCs like this which already fit existing conventions are also appropriate to just send a PR :) |
alexcrichton
added
the
final-comment-period
label
Mar 24, 2016
This comment has been minimized.
This comment has been minimized.
mattico
commented
Mar 30, 2016
|
With #1434 merged, if this gets merged we'll have
Certainly there's opportunity for someone to unnecessarily |
This comment has been minimized.
This comment has been minimized.
|
The libs team discussed this RFC during triage today and the decision was to merge. Thanks again for the RFC @LukasKalbertodt! |
alexcrichton
referenced this pull request
Mar 31, 2016
Closed
Tracking issue for {VecDeque,LinkedList}::contains #32630
This comment has been minimized.
This comment has been minimized.
|
Tracking issue: rust-lang/rust#32630 |
LukasKalbertodt commentedMar 22, 2016
Summary: add a
containsmethod toVecDequeandLinkedListthat checks if the collection contains a given item.Rendered