What is the output of the following? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 1
It is "a".
14th Jul 2018, 7:53 AM
Majstr