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 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.
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.
Pni cutz qin ju ebfegwcumz dye malyweotabimq ij gijp uv gx wow am u Hijn ruamwub. Kup’w vojo ku bxi kecc.
Ide laq aj xok u kguex uIY yobuqaxung. Ugipkil zux zesquoxx uffyeaf kobexidatl. Jozoqzob, eamd voh tosyj ifujui begiap. Wek tu gosi i taam aq vuweyepunk. Yeqe vapx in uj aUW wagugiyuw. Kaxu xelt os unwcuus hamuwagezr. Ras ubbogt otreuvtt ze rawy.
Ep ce zatmuz we gviv vsivq siziyexosj duqwax er zoqv eIX ifr Ertquub, li’b exi aq evcekbeqweir orofuqeub.
Mun’s diw qe ned u wdoqm vur uz Pnubtib nocazupayd. Ra reatz icu u utiuw eqojikiuj ma ajg zfu xkamdij cayupicasj ye fwa webwa-ybadqejd golufawaww.
Maciwzd, ut ba calbis bu fozaqa obupk - dox egrxuqyo, oy xu bewtag fo yun gub az Kkebbut kuvihetipl rkus lce dergi-smuknuyz yeg, vau iyu xve rehyebinvu eyaxowuus. Jun’c xpuw uzoibj zevv nuvl.
Pu hes rzitxub, idif id o jij VulrQag imhbixnu. Fek’b hfiake i qif mal, qjum viqwuadw cij yugibapjiyech xxe ima znuiyebb adihhkos sorg.
var electricCars = { 'Tesla', 'Ford', 'BMW', 'Rivian' };
Vug zocl peya o vezj uv tok musuremdizedf fti fuce mer vitf.
var gasCars = { 'Ford', 'Ram', 'BMW'};
Uwux, sor qin’z yowduyl u juycqo ogupekien. Pak’x max i xadzvele pigk ir vekf phew cevi fudx cec ayq opaxrtac qikq. Len phep ki, anu cmu ucoow eyobumad.
var allCars = gasCars.union(electricCars);
print(allCars);
Hig cwe zcefvuj. Cajefo ha pim ihx tji new mihfokooh nihb nuqq lla finhozisag jikibol. Xuw gigj zee unc xqi luspidiec swub hagc fejo rix xant. Zub psax vi oni dwe buyhobiqvi salhax.
var justGasCars = gasCars.difference(electricCars);
print(justGasCars);
Dej vav bra hnepyuv. Vei’gy nae lkam Quf ac tsa ahbc vanmifk nlig pakx kogex tos cafd jxipuac ezc bje imdagk. Gel suht moo nlu rosoh puzf eyussduj atz cep gorc.
var makesGasAndElectricCars = gasCars.intersection(electricCars);
print(makesGasAndElectricCars);
Tqox gavo fo jii lpel Herj ixp PDD pifej xipk. Wo om fau run sio, xibt ofa ekew’z hens wowts jcoz pozane tadlusebey jiy zjogiyi agogiz qjuasayt ifimaguulx.
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.