SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- // sorted(by:) : Diziyi, belirtilen kritere göre sıralar.
- let öğrenciler3 = ["Kemal", "Aydın", "Polat", "Zeynep", "Ayşe"]
- let azalanSıralama = öğrenciler3.sorted(by: >)
- // Sonuç : ["Zeynep", "Polat", "Kemal", "Ayşe", "Aydın"]
- let artanSıralama1 = öğrenciler3.sorted(by: <)
- // Sonuç : ["Aydın", "Ayşe", "Kemal", "Polat", "Zeynep"]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.