JuliaMath / JuliaMath/Primes.jl
[FEATURE] Reverse iteration for `Factorization`
Open
- Dominant language
- Julia
- Stars
- 108
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
Given a factorization from `factor(N)` (that's eager and already sorted in `f.pe`), it should be relatively easy to implement `iterate` for `Iterators.Reverse{T}`. Alternatively (preferably) declare the `pe` field public or provide an API to get read-only access to `pe` as a vector without allocating. (hope I haven't missed the way to do this if it's already possible)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.