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
[mojo-stdlib] Add List.count(value)
method
#2406
Conversation
List.count(value)
method
@JoeLoser are we having any ticket to track adding the conditional conformance? Is that something we can work on or is it going to be internal development? |
@StandinKP it's something that must be done internally. There is an issue here: #1876 to follow the progress if you want. It seems that it's not going to be available in the short term |
Signed-off-by: Kaushal Phulgirkar <kaushalpp01@gmail.com>
Signed-off-by: Kaushal Phulgirkar <kaushalpp01@gmail.com>
Signed-off-by: Kaushal Phulgirkar <kaushalpp01@gmail.com>
Signed-off-by: Kaushal Phulgirkar <kaushalpp01@gmail.com>
Signed-off-by: Kaushal Phulgirkar <kaushalpp01@gmail.com>
e276630
to
ac2d8bf
Compare
[External] [mojo-stdlib] Add `List.count(value)` method Add `List.count(value)` method to count the number of occurrences of a value in the `List`. Fixes #2263 --------- Co-authored-by: Kaushal Phulgirkar <kaushalpp01@gmail.com> Closes #2406 MODULAR_ORIG_COMMIT_REV_ID: e9e9be6db11d56f951e94daf22fd0ff8520615fa
This landed internally and got pushed out already - see c37a3ec. Closing this PR. Thanks again for the contribution!! 🎉 |
Add
List.count(value)
method to count the number of occurrences of a value in theList
.Fixes #2263