Skip to content

Commit

Permalink
Merge pull request #612 from ApptiveGrid/SoilIndexIterator-next-avoid…
Browse files Browse the repository at this point in the history
…-association
  • Loading branch information
noha authored Feb 13, 2024
2 parents 521383f + 4e17d89 commit daf0c2d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Soil-Core/SoilIndexIterator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,12 @@ SoilIndexIterator >> lastPage [

{ #category : #accessing }
SoilIndexIterator >> next [
^ self nextAssociation value
| nextAssociation nextValue |
nextAssociation := self basicNextAssociation ifNil: [ ^nil ].
nextValue := (self
restoreValue: nextAssociation value
forKey: nextAssociation key).
^ nextValue ifNil: [ self next ]
]

{ #category : #accessing }
Expand All @@ -266,7 +271,8 @@ SoilIndexIterator >> next: anInteger [

{ #category : #accessing }
SoilIndexIterator >> nextAfter: key [
^ (self nextAssociationAfter: key) value
self find: key.
^ self next
]

{ #category : #accessing }
Expand Down

0 comments on commit daf0c2d

Please sign in to comment.