码迷,mamicode.com
首页 > 编程语言 > 详细

swift语言点评三 - Basic Operators

时间:2018-03-30 21:38:58      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:voice   values   pos   find   you   class   from   log   code   

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

标签:voice   values   pos   find   you   class   from   log   code   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!