diff --git a/src/Moose-Core/MooseAbstractGroup.class.st b/src/Moose-Core/MooseAbstractGroup.class.st index 22d8d55d..6b808474 100644 --- a/src/Moose-Core/MooseAbstractGroup.class.st +++ b/src/Moose-Core/MooseAbstractGroup.class.st @@ -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 [