Skip to content

Commit

Permalink
Add OrderedSet>>#reverse
Browse files Browse the repository at this point in the history
Fix SequenceableCollection>>#anyOne
  • Loading branch information
gcotelli committed Aug 8, 2023
1 parent 4ec2a3a commit f450ca7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Extension { #name : #SequenceableCollection }

{ #category : #'*Buoy-Collections-GS64-Extensions' }
SequenceableCollection >> anyOne [

^ self first
]

{ #category : #'*Buoy-Collections-GS64-Extensions' }
SequenceableCollection >> copyAfter: anElement [
"Answer a copy of the receiver from after the first occurrence
Expand Down
6 changes: 6 additions & 0 deletions source/Buoy-Collections/OrderedSet.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ OrderedSet >> removeAll [
collection removeAll
]

{ #category : #converting }
OrderedSet >> reverse [

^ self reversed
]

{ #category : #converting }
OrderedSet >> reversed [

Expand Down

0 comments on commit f450ca7

Please sign in to comment.