Created
March 5, 2021 14:02
-
-
Save mmuszynski/ed45b752fd261ae5a6adce6b3c0f5b75 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for x in 1...5 { | |
print("\(x)") | |
} | |
// Output: | |
// 1 | |
// 2 | |
// 3 | |
// 4 | |
// 5 | |
Just(1...5) | |
.map { Array($0) } | |
.flatMap { Just($0) } | |
.handleEvents(receiveOutput: { | |
print($0) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment