Skip to content

Commit

Permalink
Merge pull request #774 from moosetechnology/missing-enumerating-methods
Browse files Browse the repository at this point in the history
Add missing enumerating methods for moosegroup
  • Loading branch information
uNouss committed May 23, 2024
2 parents 50ab554 + 945a48c commit 8c7cc68
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/Moose-Core/MooseAbstractGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,29 @@ MooseAbstractGroup >> detect: aBlock ifFound: anotherBlock [
^ self entities detect: aBlock ifFound: anotherBlock
]

{ #category : #enumerating }
MooseAbstractGroup >> detect: aBlock ifFound: foundBlock ifNone: noneBlock [

^ self entities
detect: aBlock
ifFound: foundBlock
ifNone: noneBlock
]

{ #category : #enumerating }
MooseAbstractGroup >> detect: aBlock ifNone: anotherBlock [

^ self entities detect: aBlock ifNone: anotherBlock
]

{ #category : #enumerating }
MooseAbstractGroup >> detect: aBlock ifOne: anotherBlock [

^ self entities
detect: aBlock
ifOne: anotherBlock
]

{ #category : #enumerating }
MooseAbstractGroup >> detectMax: aString [

Expand Down

0 comments on commit 8c7cc68

Please sign in to comment.