-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move collection extensions to its own package
- Loading branch information
Showing
4 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
source/Buoy-Collections-Extensions/SequenceableCollection.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Extension { #name : #SequenceableCollection } | ||
|
||
{ #category : #'*Buoy-Collections-Extensions' } | ||
SequenceableCollection >> equalityChecker [ | ||
|
||
^ SequenceableCollectionEqualityChecker new | ||
] | ||
|
||
{ #category : #'*Buoy-Collections-Extensions' } | ||
SequenceableCollection >> withoutFirst [ | ||
|
||
^self withoutFirst: 1 | ||
] | ||
|
||
{ #category : #'*Buoy-Collections-Extensions' } | ||
SequenceableCollection >> withoutFirst: n [ | ||
|
||
(self size <= n) ifTrue: [^self species new]. | ||
^self copyFrom: n + 1 to: self size | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Package { #name : #'Buoy-Collections-Extensions' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters