Skip to content

Commit

Permalink
Move OrderedSet>>#with:with: and variants to main package
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 8, 2023
1 parent fcb3160 commit 3af0e9d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 31 deletions.
31 changes: 0 additions & 31 deletions source/Buoy-Collections-GS64-Extensions/OrderedSet.extension.st

This file was deleted.

30 changes: 30 additions & 0 deletions source/Buoy-Collections/OrderedSet.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,36 @@ OrderedSet class >> newFrom: aCollection [
^ self withAll: aCollection
]

{ #category : #'instance creation' }
OrderedSet class >> with: firstObject with: secondObject [

^ self new
add: firstObject;
add: secondObject;
yourself
]

{ #category : #'instance creation' }
OrderedSet class >> with: firstObject with: secondObject with: thirdObject [

^ self new
add: firstObject;
add: secondObject;
add: thirdObject;
yourself
]

{ #category : #'instance creation' }
OrderedSet class >> with: firstObject with: secondObject with: thirdObject with: fourthObject [

^ self new
add: firstObject;
add: secondObject;
add: thirdObject;
add: fourthObject;
yourself
]

Check warning on line 59 in source/Buoy-Collections/OrderedSet.class.st

View check run for this annotation

Codecov / codecov/patch

source/Buoy-Collections/OrderedSet.class.st#L51-L59

Added lines #L51 - L59 were not covered by tests

{ #category : #copying }
OrderedSet >> , aCollection [

Expand Down

0 comments on commit 3af0e9d

Please sign in to comment.