Skip to content

Commit

Permalink
redundant conformance constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
SusanDoggie committed May 4, 2021
1 parent 41e7cb3 commit 86eb843
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/DoggieCore/Swift/CollectionExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ extension Sequence {
}
}

extension Collection where SubSequence: Collection {
extension Collection {

@inlinable
public func rotated(at index: Index) -> Chain2<SubSequence, SubSequence> {
return chain(self.suffix(from: index), self.prefix(upTo: index))
}
}

extension Collection where SubSequence: Collection {
extension Collection {

@inlinable
public func rotated(_ n: Int) -> Chain2<SubSequence, SubSequence> {
Expand Down
2 changes: 1 addition & 1 deletion Sources/DoggieGeometry/ShapeRegion/PathBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

private let ShapeCacheInterscetionResultKey = "ShapeCacheInterscetionResultKey"

extension Collection where SubSequence: Collection {
extension Collection {

func rotateZip() -> Zip2Sequence<Self, Chain2<SubSequence, SubSequence>> {
return zip(self, self.rotated(1))
Expand Down

0 comments on commit 86eb843

Please sign in to comment.