首页 > 编程语言 > 详细

swift语言点评三 - Basic Operators

时间:2018-03-30 20:38:43      阅读:205      评论:0      收藏:0      [点我收藏+]

1、Tuples are compared from left to right, one value at a time, until the comparison finds two values that aren’t equal.

(1, "zebra") < (2, "apple")

You can compare two tuples if they have the same type and the same number of values. Tuples are compared from left to right, one value at a time, until the comparison finds two values that aren’t equal.

 

2、nil-coalescing operator (a ?? b)

swift语言点评三 - Basic Operators

原文:https://www.cnblogs.com/feng9exe/p/8678028.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!