Created
September 14, 2016 10:53
-
-
Save niwatako/170a28f08f45534decf1169d8f3f5165 to your computer and use it in GitHub Desktop.
b = a したのにそのあと a == b にならないコード #CodePiece #iphonekyoto
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 a = (price: 180, no: 32) | |
var b = (no: 0, price: 10) | |
b = a // b = (no:32, price: 180) になる | |
if a == b { | |
print("実行されない") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment