What is the output of the following? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 1
It is "a".
14th Jul 2018, 7:53 AM
Majstr