Created
December 13, 2018 01:51
-
-
Save rizumita/085baa2288b7e10436d999dd4144e5fe to your computer and use it in GitHub Desktop.
計算結果に名前を付けてifで判定する場合、Swiftでこういう書き方はありなのか、してる人いるのかって思ったんですがどうなんでしょう。 #swift #CodePiece
This file contains 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
let i = 1 | |
let ii = 2 | |
// let flag = i < ii | |
// if flag {} | |
if (flag: i < ii).0 {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment