Skip to content

Commit

Permalink
Merge pull request #765 from moosetechnology/add-api-to-mooseabstract…
Browse files Browse the repository at this point in the history
…group

Add #detect:ifFound: to MooseAbstractGroup
  • Loading branch information
ClotildeToullec committed Apr 24, 2024
2 parents 29c0019 + 842c85f commit 50d911e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/Moose-Core/MooseAbstractGroup.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,21 @@ MooseAbstractGroup >> count: aBlock [
]

{ #category : #enumerating }
MooseAbstractGroup >> detect: aBlock [
^self entities detect: aBlock
MooseAbstractGroup >> detect: aBlock [

^ self entities detect: aBlock
]

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

^self entities detect: aBlock ifNone: anotherBlock
MooseAbstractGroup >> detect: aBlock ifFound: anotherBlock [

^ self entities detect: aBlock ifFound: anotherBlock
]

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

^ self entities detect: aBlock ifNone: anotherBlock
]

{ #category : #enumerating }
Expand Down

0 comments on commit 50d911e

Please sign in to comment.