-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add HasAtLeast<TSource>(this IEnumerable<TSource>, int) #19505
Comments
It can be rewritten as |
I admittedly had not thought of that! I'll leave it open in case anyone else comes up with reasons to keep it. |
I would suggest to close it. If someone has evidence this is indeed useful, just comment here and we can reopen it. |
I agree it's not worth adding another API, though it may make https://github.com/dotnet/corefx/issues/2327#issuecomment-263578679 more impactful to do. |
… (dotnet#19505) * [wasm][debugger] Show signature for delegate, or target, if available - As object properties, we return a `Target` which has the signature of the delegate target. Fixes mono/mono#19382 * [wasm][debugger] Some tidying up * [wasm][debugger] Remove unused `sig_desc` * [wasm][debugger] Simplify code, avoid extra allocations .. as suggested by @lewing (cherry picked from commit 4eca12e794764da1a0646e77af5b8c60a2e2767a)
Motivation
When working with sequences of just
IEnumerable<T>
callingCount()
can be very expensive ifCount()
is forced to enumerate through the whole sequence. When checking if a sequence has X elements or more callingCount()
is not just expensive but wasteful.Proposal
The text was updated successfully, but these errors were encountered: