+ 1

I don't get it that a boolean return turns to a sorted array?How?

24th Mar 2017, 12:52 PM
Xue Cao
Xue Cao - avatar
5 Answers
+ 11
its because parameter in method sort is converted to boolean, then the return is used back to sort into array. its difficult to explain.
24th Mar 2017, 2:25 PM
Agus Mei
Agus Mei - avatar
+ 11
the best way is practice it in code playground, but Sololearn don't support it yet.
24th Mar 2017, 2:29 PM
Agus Mei
Agus Mei - avatar
+ 2
I don't know if it's me alone but I don't understand the question :S
24th Mar 2017, 1:03 PM
Geoffrey L
Geoffrey L - avatar
+ 2
I don't even know what swift is
24th Mar 2017, 1:48 PM
Cole Reizenberg
Cole Reizenberg - avatar
0
Swift is the language used to create apps on Apple devices. Version 3 of the language has been released.
1st Apr 2017, 4:38 PM
Mike Allen
Mike Allen - avatar