mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
12 lines
247 B
Swift
12 lines
247 B
Swift
func printAllDoubles() async {
|
|
for await number in DoubleGenerator() {
|
|
print(number)
|
|
}
|
|
}
|
|
|
|
func containsExactNumber() async {
|
|
let doubles = DoubleGenerator()
|
|
let match = await doubles.contains(16_777_216)
|
|
print(match)
|
|
}
|