Skip to content

Commit

Permalink
Add method to compatibility package
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 9, 2023
1 parent c9044c0 commit a47c903
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/Buoy-GS64-Compatibility/Collection.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Extension { #name : #Collection }

{ #category : #'*Buoy-GS64-Compatibility' }
Collection >> any [

"Answer a representative sample of the receiver. It raises an error when the collection is empty. This method can be helpful when needing to preinfer the nature of the contents of semi-homogeneous collections."

self emptyCheck.
self do: [ :each | ^ each ]
]

0 comments on commit a47c903

Please sign in to comment.