What is the output of the following? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the output of the following?

let names = ["c","a","e","b"] let res = names.sorted(by:<) print(res[0])

13th Jul 2018, 4:40 PM
Manas Gargate
Manas Gargate - avatar
1 Réponse
+ 1
It is "a".
14th Jul 2018, 7:53 AM
Majstr