+ 1
What does ? mean in Swift
I Know this might've been discussed in the lessons but I still need a bit of classification. In swift they use the question mark quite a bit
1 ответ
+ 3
the question mark is used for ternary operators for example:
a>b?a:b returns a if a is bigger than b otherwise returns b