mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
remove undesirable default values
This commit is contained in:
1 parent
c611501b0a
commit
296f94c2d8
2 files changed
+2
-2
No files matched your search
@@ -546,7 +546,7 @@ extension RawSpan {
|
||||
///
|
||||
/// - Complexity: O(1)
|
||||
@inlinable
|
||||
public func extracting(droppingFirst k: Int = 1) -> Self {
|
||||
public func extracting(droppingFirst k: Int) -> Self {
|
||||
precondition(k >= 0, "Can't drop a negative number of elements.")
|
||||
let dc = min(k, byteCount)
|
||||
let newStart = _pointer?.advanced(by: dc)
|
||||
|
||||
@@ -757,7 +757,7 @@ extension Span where Element: ~Copyable /*& ~Escapable*/ {
|
||||
///
|
||||
/// - Complexity: O(1)
|
||||
@inlinable
|
||||
public func extracting(droppingFirst k: Int = 1) -> Self {
|
||||
public func extracting(droppingFirst k: Int) -> Self {
|
||||
precondition(k >= 0, "Can't drop a negative number of elements.")
|
||||
let droppedCount = min(k, count)
|
||||
let newStart = _pointer?.advanced(by: droppedCount)
|
||||
|
||||
Reference in new issue
Block a user