Created
June 20, 2017 12:08
-
-
Save ezura/2133a547ff27bddb27148278472f368f to your computer and use it in GitHub Desktop.
while でキャプチャリストは毎回評価されるのか試してみた。評価されてた #swift #CodePiece
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
| var i = 0 | |
| repeat { [_ = print("capture list")] | |
| i += 1 | |
| } while i < 3 | |
| /* | |
| capture list | |
| capture list | |
| capture list | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment