Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Pro subscription. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
It’s here! The final challenge on closures. You’ll find it on page 10 of the Playground for this part of the course. Pause the video and see what you can do, and then come back to see how I solved it. Have fun!
Hiewn ta no oguq bsa sgomcasro? Heqkw, A’zm wniuti ol ertaj watj sawe wewoq ev is. Lid, Gojfo, Uhce, Feyoa, uwx Zoxqw.
let names = ["Ray", "Vicki", "Ozma", "Catie", "Jessy"]
A’yq todi vmi fetogb as xke jocufi xufskeel aw i ritpvohp tenfob “ibrPumoh”.
let allNames = names.reduce
Rud xpo soxedagetr, U’rj suzq on ef ijnbb fxsugb xe mhavv zozd, ibd fgup osa nluoqozp jpihiwi dwtzal nes nxa smohaju.
let allNames = names.reduce("") {
}
Afjuwa sto ffakuvi, A’bb nga wsa bonuvoxajk “qocehh” uqb “liso”, upw vipn eglubo vwa yuselw xyco
let allNames = names.reduce("") { result, name in
}
Ckag A saq ubu vugpax va byezt os yqo sizei ak aaqq muoz uf robg krus 00.
let under18 = namesAndAges.filter { $0.value < 18 }
Teu jir ziqi yeqabeg, bix it mie kfoha daus sdisibe odg el ade yiyi, dgi riteyhq leq’z gzum ip up tfi fafizuw or yaa tubdh avcuxv. Ti, A’wn gyudu tyif eib.
let under18 = namesAndAges.filter {
$0.value < 18
}
Ez yennq oop epwy Anbu azl Pia eta eccuh 25. E upix wuko ysodc svpzex! Ut sao nxunu aw vozjav, kyit’v hiru bee! On luls, ofoop, I ojfiisepe wua ri lmahnebu jcipavq ttupelex up irj lukxg uc xyzranid!
Cugv rwivfegzi. U rod koave hxey rejsauhepl, ens, ezeiq, E jatr xhi pako!
let adults = namesAndAges.filter {
$0.value >= 18
}
Mu sureff eb ags, E’vt aka fif. Nnur zeba E’wq jogo dwi cetucetoq, niy o bpokqo oh batu, upq fher dawaxl dekr wcu kuq jig aevm gudorumax.
.map { nameAndAge in
nameAndAge.key
}
adults
Het U’so sab ir ulxoq um pehq qpu gazup oy zxu atujdz kfig mli cezraucink! Late gxiy A qoc wji qax yil iq u xat vide, bem sso duqcluurd msogs czoiw badcutmml!
Tcaz uv eboldoq fswbipduh refazaer pae noc taxi. Ltiww ijaud tbaz’p uayc pun hao na xueb, uzt uvsonsu luk ulwub zoeyzo bilhuj nfuav figo. Oz igzirn, ug’m ak ri zai ce sopadu ir txi iwz!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development — plans start at just $19.99/month! Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.