Skip to content
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 Iterators.countfrom(::Any, ::Any) #37747

Merged
merged 5 commits into from
Sep 29, 2021

Conversation

MarcMush
Copy link
Contributor

@MarcMush MarcMush commented Sep 25, 2020

closes #37462

Copy link
Member

@JeffBezanson JeffBezanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta love ordinal types :)

@MarcMush MarcMush changed the title RFC: add Iterators.countfrom(::Any, ::Any) add Iterators.countfrom(::Any, ::Any) Oct 2, 2020
@MarcMush
Copy link
Contributor Author

@JeffBezanson can this be added for 1.6 ?

@StefanKarpinski
Copy link
Member

Bump?

@stevengj
Copy link
Member

Needs a NEWS item?

@stevengj stevengj added the needs news A NEWS entry is required for this change label Nov 16, 2020
@MarcMush
Copy link
Contributor Author

sorry for the delay, I added a NEWS entry

NEWS.md Outdated Show resolved Hide resolved
@stevengj stevengj removed the needs news A NEWS entry is required for this change label Sep 27, 2021
@stevengj stevengj added the merge me PR is reviewed. Merge when all tests are passing label Sep 27, 2021

eltype(::Type{Count{S}}) where {S} = S

eltype(::Type{Count{T,S}}) where {T,S} = T
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
eltype(::Type{Count{T,S}}) where {T,S} = T
eltype(::Type{<:Count{T}}) where {T} = T

@vtjnash vtjnash removed the merge me PR is reviewed. Merge when all tests are passing label Sep 29, 2021
@oscardssmith oscardssmith merged commit 7f26a7f into JuliaLang:master Sep 29, 2021
oscardssmith added a commit that referenced this pull request Sep 29, 2021
@oscardssmith
Copy link
Member

I accidentally just merged this. Does it need to be reverted @vtjnash?

vtjnash added a commit that referenced this pull request Sep 29, 2021
KristofferC pushed a commit that referenced this pull request Sep 30, 2021
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Iterators.countfrom(::Any, ::Any) doesn't exist
6 participants