Skip to content

Commit

Permalink
Add Collection>>#select:thenCollect:
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 7, 2023
1 parent c2fefdb commit 5b91793
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ Collection >> ifEmpty: emptyBlock ifNotEmpty: notEmptyBlock [
ifTrue: emptyBlock
ifFalse: [ notEmptyBlock cull: self ]
]

{ #category : #'*Buoy-Collections-GS64-Extensions' }
Collection >> select: selectBlock thenCollect: collectBlock [

^ (self select: selectBlock) collect: collectBlock
]

0 comments on commit 5b91793

Please sign in to comment.