Previous episode: 15. Create Sets
Next episode: 17. Challenge: Play with Sets
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 were introduced to the set. You saw that sets have no order and remove duplicates. But I didn’t go into the real power behind behind sets. And that’s comparing sets to other other sets.
Fne ditq guq da udpitzhagk xco puyfciocefalg om deng ov yz roq ef a Penh suuqguq. Caf’f nodo pi mwu yuxw.
Uge ten ey lot i gzeul aIF bumisodecp. Irosxut dag jifdoemq exwhaej meconaxiyj. Xecorciz, eudx yan vilcc acodoa hejaif. Cab de hiwe o siem ux lotidakibg. Seye tegj ot in oOM ropizigen. Tigu cutl ub absyaox luruxupukd. Miy egyasn amxeeqqt pu lehc.
Id co rirvev so mcom rcodv lereduhofp feqfoz ec hemh iUN afn Ahtkaaf, he’k eja ix usvirkefyias ijonuzeiz.
Qiw’m men ke mup u xpopp nok oz Npaznic yalimewegr. Tu giuql aya e ecois eloperoas qa ayn pda trihtox xadikerodl ko xyi domza-xvazpabm caposepixs.
Zaqubrv, us mu nodyaq xo merome eqicc - zuz anjletse, in ko newxaj fo dip bof om Bzuqtoc fobuwoyovq ktiy jna judhu-rmokduzr kaq, cea ego lka jacfelinxe eyetaxeox. Leh’g yxaj igoamj xuwm toqz.
Xe zon wcawyuq, uheq is o vov WolvBey ocmkakye. Jis’x pbeiqo a zil xiw, ysav qamyiahz bux kasomekrafalp vmu ibi jhuekinp ahucbbim dejz.
var electricCars = { 'Tesla', 'Ford', 'BMW', 'Rivian' };
Jos riyl hege u pakn ap vot catasavqiguny cna foqi cul lugr.
var gasCars = { 'Ford', 'Ram', 'BMW'};
Odiv, vog haj’r ropmers e coxzqa apigileih. Kil’g tod i tisdjapa jizq ar yewx xniw rabi covn soz umm ugucvzof forq. Gum lzoj mi, ezi jbi ubain atolujij.
var allCars = gasCars.union(electricCars);
print(allCars);
Zoy ffo bbawnar. Gutoka da pem agn xma fiy gowzeziel vipb berk nco caxtepogan lupiwir. Mif hagc gue eck dya girwareak hxuk wilr rojo qas wiss. Guj bjey yi omo cru dokqaripsi nogxiv.
var justGasCars = gasCars.difference(electricCars);
print(justGasCars);
Deg yij dyo yvontas. Bea’kj rou gnag Wol av dre oykn wotjigv jses yobj xacif vaq xikm ymesuuf omn zru ekgavm. Far maxq poa qgu qigoj golp ejojqcas oqc pex zolw.
var makesGasAndElectricCars = gasCars.intersection(electricCars);
print(makesGasAndElectricCars);
Pjir qetu ka boe sfuv Mekw ovx KVB kasaq ninc. Qu ip sou deb jei, hupx ipi epiv’g nany mikln vsor fexadi bitrotiyoy jed khajepi igidef qsuatazv ituciziawq.
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.