Skip to content

Fix iterator eltypes for Stack, SparseIntSet zip, and Trie partial paths - #1007

Open
sanketpatel32 wants to merge 3 commits into
JuliaCollections:masterfrom
sanketpatel32:iterator-eltypes
Open

sanketpatel32 wants to merge 3 commits into
JuliaCollections:masterfrom
sanketpatel32:iterator-eltypes

Conversation

@sanketpatel32

Copy link
Copy Markdown

Summary

  • Add typed eltype for DequeIterator, fixing collect(Iterators.reverse(::Stack))
  • Add arity-aware typed eltype for ZippedSparseIntSetIterator
  • Parameterize TrieIterator by its trie type and add typed eltype
  • Add regression tests for the concrete vector types produced by collect

Fixes #1000

Testing

  • Julia 1.11.6: julia --project=. test/runtests.jl — 290051/290051 tests passed
  • Julia 1.6.7: julia --project=. test/runtests.jl stack sparse_int_set trie — 1060/1060 tests passed

AI assistance

Implemented with assistance from Devin (claude opus 5.5).

This branch has not been deployed

No deployments
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.

collect returns Vector{Any} for Iterators.reverse(::Stack), zip(::SparseIntSet...) and partial_path

1 participant