mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
[BitArray] Add docs.
This commit is contained in:
1 parent
fcac09d86a
commit
5bc22eaf9b
9 files changed
+348
-12
No files matched your search
@@ -10,6 +10,14 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
extension BitArray: Equatable {
|
||||
/// Returns a Boolean value indicating whether two values are equal.
|
||||
///
|
||||
/// Equality is the inverse of inequality. For any values `a` and `b`,
|
||||
/// `a == b` implies that `a != b` is `false`.
|
||||
///
|
||||
/// - Parameter lhs: A value to compare.
|
||||
/// - Parameter rhs: Another value to compare.
|
||||
/// - Complexity: O(left.count)
|
||||
public static func ==(left: Self, right: Self) -> Bool {
|
||||
guard left._count == right._count else { return false }
|
||||
return left._storage == right._storage
|
||||
|
||||
Reference in new issue
Block a user