When I use conditional operator in Swift, like this:
let foo = array.count < 0? 0 : array.count
I got error:
Consecutive statements on a line must be separated by ';'
I know that ?
in swift is used to unwrap optional.
Should I use this operator in swift?
If I can, how?