@@ -555,7 +555,7 @@ function resize!(it::CachedIterator,n::Integer)
555
555
556
556
@inbounds for k = m+ 1 : n
557
557
xst = iterate (it. iterator,it. state... )
558
- if xst == nothing
558
+ if xst === nothing
559
559
it. length = k- 1
560
560
return it
561
561
end
@@ -573,7 +573,7 @@ eltype(it::Type{<:CachedIterator{T}}) where {T} = T
573
573
574
574
iterate (it:: CachedIterator ) = iterate (it,1 )
575
575
function iterate (it:: CachedIterator ,st:: Int )
576
- if st == it. length + 1 && iterate (it. iterator,it. state... ) == nothing
576
+ if st == it. length + 1 && iterate (it. iterator,it. state... ) === nothing
577
577
nothing
578
578
else
579
579
(it[st],st+ 1 )
@@ -732,14 +732,14 @@ function iterate(it::BlockInterlacer, (N,k,blkst,lngs))
732
732
# increment to next block
733
733
blkst = map (it. blocks,blkst) do blit,blst
734
734
xblst = iterate (blit, blst... )
735
- xblst == nothing ? blst : (xblst[2 ],)
735
+ xblst === nothing ? blst : (xblst[2 ],)
736
736
end
737
737
return iterate (it,(1 ,1 ,blkst,lngs))
738
738
end
739
739
740
740
Bnxtb = iterate (it. blocks[N],blkst[N]. .. ) # B is block size
741
741
742
- if Bnxtb == nothing
742
+ if Bnxtb === nothing
743
743
# increment to next N
744
744
return iterate (it,(N+ 1 ,1 ,blkst,lngs))
745
745
end
0 commit comments