mirror of
https://github.com/apple/swift-collections
synced 2026-11-28 05:04:21 +00:00
Merge pull request #501 from faimin/main
Add the missing COLLECTIONS_SINGLE_MODULE when import InternalCollectionsUtils
This commit is contained in:
8 files changed
+16
No files matched your search
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
#if false
|
||||
// FIXME: Bitwise operators disabled for now. I have two concerns:
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
#if !$Embedded
|
||||
extension BitArray: Codable {
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension BitArray {
|
||||
/// Initialize a bit array from a bit set.
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension BitArray {
|
||||
/// Create and return a new bit array consisting of `count` random bits,
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension BitArray {
|
||||
@_spi(Testing)
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension BitSet: Sequence {
|
||||
/// The type representing the bit set's elements.
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension BitSet {
|
||||
public static func random(upTo limit: Int) -> BitSet {
|
||||
|
||||
@@ -9,7 +9,9 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#if !COLLECTIONS_SINGLE_MODULE
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
extension BitSet {
|
||||
/// Returns a Boolean value that indicates whether the given element exists
|
||||
|
||||
Reference in new issue
Block a user