We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_arrayConditionalCast
1 parent 275a679 commit 5030c82Copy full SHA for 5030c82
stdlib/public/core/ArrayCast.swift
@@ -71,6 +71,7 @@ internal func _arrayDownCastConditionalIndirect<SourceValue, TargetValue>(
71
///
72
/// - Complexity: O(n), because each element must be checked.
73
@inlinable //for performance reasons
74
+@_semantics("array.conditional_cast")
75
public func _arrayConditionalCast<SourceElement, TargetElement>(
76
_ source: [SourceElement]
77
) -> [TargetElement]? {
0 commit comments