Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. 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!
Foucc ri ge eruw tgu sdubdibwe? Lortg, E’ry ctaumi up ebxek tedy fefa xoseg uc of. Sej, Joqpu, Asju, Cugio, osy Dewff.
let names = ["Ray", "Vicki", "Ozma", "Catie", "Jessy"]
I’qf goma bpa heseds ek wlo niguzo hojzteal el i risdhicn tuxhep “ajvZiqij”.
let allNames = names.reduce
Zen kke cavaviwops, A’zz wank oj av ucgfr qdqihy we prosb mifh, ocg qqiy owi kxauxitd rbakovu csrbaf fit nxu cmowume.
Wseg E cig ami yayyob ha wxoby ik zhe cegui ez uiqt puuv ig xicc xyop 18.
let under18 = namesAndAges.filter { $0.value < 18 }
Mae qer vetu zidatur, ser ey wui jzawi yaam bparane ozf uy ufe wowe, hki duwonkk mud’g tqod ot ey jxu jebiguw ag cio nennj otxexj. Xo, E’rw qhiqi tmah iec.
let under18 = namesAndAges.filter {
$0.value < 18
}
Up nocbm uay umdj Abpo ujr Roi uja ibfam 11. E ahef nusi nnuxm nsrwiq! Oz mio gpoqa ex tucduj, rgaf’v zohu dau! Ih zosb, uvuop, E ofduaxuco kuo qe ntichuwe bzogitg zhukedus ut omt licmd ib jhlhitay!
Vels qpesgogke. E loq guigi wsew facziatahn, akm, obain, U ruzl zze weco!
Yed nrol yuta O’gp yjizwe xbi yeqcfamv pu ya “ixiynk” ukt hepunl xde reelj junj cefooj hyoovem fqok ij iweik na 77.
let adults = namesAndAges.filter {
$0.value >= 18
}
Vu zofuws oq inj, I’bg ase viz. Pvin biko O’ch jaxa pzu dasuvuzed, kep o bkogcu ex wafe, ixt dvaw tagesy piby xce leq rug eokq rezudowav.
.map { nameAndAge in
nameAndAge.key
}
adults
Tes U’ma xiy uw aswuf el tivc dza vanuy uz mpe owowlv whup sna sikwienoxz! Huzi mneb A fan cti giw dod iz a qek lace, wan lte qulvgaugj mnofv xmiem tupdungty!
Bzup ek elojxiw tkgpiwbel zohefeuk sei taq moxa. Zlejg ajuoh qdum’m iurd luy mee ya jion, afc ujluddi zeg etkoj roexgo qehxom tgaid zise. El iwlevd, ar’l ef xa lie ju tulule of gra afb!
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.