Skip to content

Commit

Permalink
Added changed by opened discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelKochenda committed Sep 6, 2019
1 parent dfea1d6 commit 0299a1c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Queue/Queue-Optimized.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,10 @@ public struct Queue<T> {
}

extension Array {

subscript(guarded idx: Int) -> Element? {
guard (startIndex..<endIndex).contains(idx) else {
return nil
}
return self[idx]
}

}

0 comments on commit 0299a1c

Please sign in to comment.