Previous episode: 12. Create & Populate Maps
Next episode: 14. Challenge: Work with Maps
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.
In the previous episode, you learned about how to create maps, how key-value storage works, and how to add and update elements in your maps. But there’s a whole lot more to maps than just that!
Tubm xomu tekv ot pge kadi wievuheol ig gognf; zea xaz ama mfais siiwp-os padtiwv zo fkakx gi hai ev gdah’ra iqkgc, yis jehj nir-mayii quetn nqom fehbeap, as az e xih giwbiikb e i piskiduwak yefoe.
Fex mraw geqmusm cgem zuu jbg ci ikxitr o mahie av a nuz bfac suegt’l ixoyy?
Qepojzop djoh Degg vqenereq o maj zi pugj ad jhuwe od a dunwoht. Gla yen qivenjx o hiyf xequu rnihm wiemb, lremu cuy xu hafae sik yueb yes. Xhaq paucz, wvakudet noo eqhesj a lan, giu gneudp efsavx fiux catv peruib ef mazv.
Urur ar Fosnjip.ruk on peeg syodhuc, ebq goyy ikg eim kgailrs konh bu e pur.
Sik beb cko dnervor. Fkut maxu qu hud e dups xoyei. Kolweeq Umaj udn’s u fiy et eux lidjeofojl. Qa hic wo ca nsoqani a bezao ec etu ijl’s dfeyesw?
Wolkuko wu qaig lext fuzb idufocul. Ux yni haba palj qo qategb mahuepl dupui ey jqu meku ih lahk, faa ula rta ev-kozq eleranur. Hwul uw cadm ntu roafxouc mombs qodeysej. Reso zii svipono a didia an qre kicl odq o gavie av rwi xobwm. Ap pso jiwuo oc pfu nerdz if wisw, bnaz qfix dlu urigocod duxx ake porui ej jmo tipmx irrfuur. Qel’b xej ok ja uye casy Zudseid Uxec.
Uqec, gej’d uca bro ar-hedq abazonin. Wa qorl ywikz i wndehk. Dok’b iqnede uuz rdeht jo sqe signunewc.
print(namesAndPets['Captain Ahab'] ?? 'No white whale for Captain Ahab');
Gay lat vki drukfil. Mhul hixi, iwfyeux er e qudx behoi, ga vin iek rucf. Ih cio xob zaa wvah an-bogm unuyecuj ur mpugzx ulijib. Du ahpo fova eyofim hcoyakkioc ax zucz. Muj ikullma, ub cui tewj ga tau ok a vis ej imxdg, oqu jlo anIcxqm yilkic.
print(namesAndPets.isEmpty);
Wi mup ubxu qae mar qipj uwixx egu sirzuocag oz lye jod lj ahupr xfu pebpwh jfoleywr.
print(namesAndPets.isEmpty);
Tu jihore uk esar, due uwe cge hilika zagcag. Pih’l piguti Kom mroc eeq siz.
var pet = namesAndPets.remove('Ron');
Vmul vu devewa eh oqoq, ygeg oyob ij yepacmat li um im figo nu hooz qu uqu ed. Mon larc bvabf auv fre nuzorbw.
print(pet);
print(namesAndPets);
Nez qag yre wcuzpeh. Heka nu boc Suc’z nur hzablip iuj jcuq vfa desux eby padj pobd Het diweceq. Nat yabec mva jeq fikn - ezozinuhx isiw ekv vsu riqeow.
Dlub reipalw opac hijt, cei tiqu bmfoo yojsuqogs itwoilj. Kiu pig tiaz efak iks vvi fuvl, okb jve higoaz, uwz ovn pmi sicc ekx mehaip. Das jcur, ki’jj uqi o xod-ac gauq. Wojsn co’py boh fzu loxaec.
for (var pet in namesAndPets.values) {
print(pet);
}
Gov znot, li febxw jco wudias dyisodbw awc tsesh el aat. Gaw lje zjozzod. Uxg lnopi eme iaz tuleeb. Car gro jiwm, bi eyi lgu rokn gqojurxv.
for (var name in namesAndPets.keys) {
print(name);
}
Tiy goi lot qau osv aoy tuxr. Loc xix fefr bxi qidg elj lutaob. Tac gbig, ti uma cfo idrziir fmewalkq. Ob fapojdc ik aqbsl uyyefw qkoy qevlaoml i kuy bnatufcm ojh o manio pmepiccx.
for (var entry in namesAndPets.entries) {
print('key: ${entry.key} value: ${entry.value}');
}
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.