Add length property to cartesianProduct for finite forward ranges#10961
Conversation
Fixes issue 9871
|
Thanks for your pull request and interest in making D better, @manavgupta26! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
Fixes issue 9871
std/algorithm/setops.d
Outdated
| // For infinite ranges or non-forward ranges, we fall back to the old | ||
| // implementation which expands an exponential number of templates. | ||
| import std.typecons : tuple; | ||
| import std.algorithm : allSatisfy; |
There was a problem hiding this comment.
| import std.algorithm : allSatisfy; | |
| import std.meta : allSatisfy; |
This should fix the style check failure.
The problem is that |
Fixes issue 9871