We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44fe998 commit 784741bCopy full SHA for 784741b
1 file changed
Sources/SortedArray.swift
@@ -133,15 +133,15 @@ extension SortedArray {
133
/// - Complexity: O(1).
134
@warn_unqualified_access
135
public func min() -> Element? {
136
- return _elements.first
+ return first
137
}
138
139
/// Returns the maximum element in the sequence.
140
///
141
142
143
public func max() -> Element? {
144
- return _elements.last
+ return last
145
146
147
0 commit comments