-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
feat(data_structures): add first
and first_mut
methods to stack types
#8908
feat(data_structures): add first
and first_mut
methods to stack types
#8908
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #8908 will not alter performanceComparing Summary
|
ee91832
to
3b650c0
Compare
a8845fd
to
f6b6e70
Compare
3b650c0
to
3168f14
Compare
3c19274
to
39b0c9c
Compare
Merge activity
|
…ypes (#8908) Add `first` and `first_mut` methods to `NonEmptyStack` and `SparseStack`. * For `NonEmptyStack`, these methods for can be infallible, as the stack is guaranteed not to be empty. * For `SparseStack`, these methods can use the more efficient methods on `NonEmptyStack`. Originally suggested by @branchseer in #8691.
39b0c9c
to
0a74cf5
Compare
Add
first
andfirst_mut
methods toNonEmptyStack
andSparseStack
.NonEmptyStack
, these methods for can be infallible, as the stack is guaranteed not to be empty.SparseStack
, these methods can use the more efficient methods onNonEmptyStack
.Originally suggested by @branchseer in #8691.