SHARE
TWEET

Untitled

a guest Jan 16th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // sorted(by:) : Diziyi, belirtilen kritere göre sıralar.
  2. let öğrenciler3 = ["Kemal", "Aydın", "Polat", "Zeynep", "Ayşe"]
  3.  
  4. let azalanSıralama = öğrenciler3.sorted(by: >)
  5.  
  6. // Sonuç : ["Zeynep", "Polat", "Kemal", "Ayşe", "Aydın"]
  7.  
  8. let artanSıralama1 = öğrenciler3.sorted(by: <)
  9.  
  10. // 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. OK, I Understand
 
Top