mirror of
https://github.com/tgorordo/WignerSymbols.jl.git
synced 2026-06-13 02:02:14 -07:00
speed improvement plus v0.7 compatibility
This commit is contained in:
parent
21688c9a2b
commit
cdb460332c
4 changed files with 19 additions and 4 deletions
|
|
@ -12,8 +12,8 @@ struct PrimeIterator
|
|||
end
|
||||
primes() = PrimeIterator()
|
||||
|
||||
Base.iteratorsize(::Type{PrimeIterator}) = Base.IsInfinite()
|
||||
Base.iteratoreltype(::Type{PrimeIterator}) = Base.HasEltype()
|
||||
Compat.IteratorSize(::Type{PrimeIterator}) = Base.IsInfinite()
|
||||
Compat.IteratorEltype(::Type{PrimeIterator}) = Base.HasEltype()
|
||||
Base.eltype(::PrimeIterator) = Int
|
||||
|
||||
# Get the `n`th prime; store all primes up to the `n`th if not yet available
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue