sirayla calisan talimatlar toplami.
calisma alani
Gleam
Gleam icin sifirdan pratik ogrenme yolu
once tanim
Gleam nedir
Gleam kesin talimatlar yazmak icindir. Burada onu Gleam icin sifirdan pratik ogrenme yolu olarak ogreniyorsun. Baslangic modeli: girdi adimlardan gecer ve cikti olur.
src/main.gleamcalistir gleam runaliskanlik Gleam icin kucuk bir parca ogren, minimal ornek yaz ve calistirdeger veridir. degisken bu veriyi tutan isimdir.
girdi alip sonuc ureten isimli kucuk is.
Gleam src/main.gleam icindeki kodu calistirir.
ilk okunur kod
program ciktisi
entry point output syntax io.printlnio.println("42")cikti 42dil soyu
Gleam aile agaci
Gleam nereden gelir, hangi diller yakindir ve sonra ne ogrenilir.
sifirdan
Soru bankasi
Once ara sonra calis
Bir asama sec veya bu dilin soru bankasinda ara ve alistirmaya gec.
Gleam soru 1
Gleam soru 1. deger yazdirma icin en uygun ifadeyi sec.
Gleam soru 2
Gleam soru 2. degeri adlandirma icin en uygun ifadeyi sec.
Gleam soru 3
Gleam soru 3. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Gleam soru 4
Gleam soru 4. temel koleksiyon icin en uygun ifadeyi sec.
Gleam soru 5
Gleam soru 5. deger yazdirma icin en uygun ifadeyi sec.
Gleam soru 6
Gleam soru 6. degeri adlandirma icin en uygun ifadeyi sec.
Gleam soru 7
Gleam soru 7. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Gleam soru 8
Gleam soru 8. temel koleksiyon icin en uygun ifadeyi sec.
Gleam soru 9
Gleam soru 9. deger yazdirma icin en uygun ifadeyi sec.
Gleam soru 10
Gleam soru 10. degeri adlandirma icin en uygun ifadeyi sec.
Gleam soru 11
Gleam soru 11. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Gleam soru 12
Gleam soru 12. temel koleksiyon icin en uygun ifadeyi sec.
Gleam soru 13
Gleam soru 13. deger yazdirma icin en uygun ifadeyi sec.
Gleam soru 14
Gleam soru 14. degeri adlandirma icin en uygun ifadeyi sec.
Gleam soru 15
Gleam soru 15. yeniden kullanilabilir fonksiyon icin en uygun ifadeyi sec.
Gleam soru 16
Gleam soru 16. temel koleksiyon icin en uygun ifadeyi sec.
Gleam soru 17
Gleam soru 17. deger yazdirma icin en uygun ifadeyi sec.
Gleam soru 18
Gleam soru 18. degeri adlandirma icin en uygun ifadeyi sec.
coktan secmeli
Gleam soru 1
Gleam soru 1. deger yazdirma icin en uygun ifadeyi sec.
io.println("42")referans
src/main.gleam kaliplari
gleam runentry point output syntax io.println
program ciktisi
io.println("42")- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types let
degerler ve isimler
let total = 42 io.println(int.to_string(total))
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection List
fonksiyonlar ve koleksiyonlar
fn add(a: Int, b: Int) -> Int {
a + b
}
let scores = [40, 2]
io.println(int.to_string(list.length(scores)))- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks