Files
SwiftFormat/Snapshots/Async/AsyncSequences.swift
2021-05-30 07:50:05 +01:00

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)
}