MashedTech@lemmy.world to Programmer Humor · 3 months agoI redid the meme with what hurts melemmy.worldimagemessage-square58fedilinkarrow-up1471arrow-down113file-textcross-posted to: [email protected][email protected]
arrow-up1458arrow-down1imageI redid the meme with what hurts melemmy.worldMashedTech@lemmy.world to Programmer Humor · 3 months agomessage-square58fedilinkfile-textcross-posted to: [email protected][email protected]
minus-squarecalcopiritus@lemmy.worldlinkfedilinkarrow-up3·edit-23 months agoAnything that’s not an integer or a range doesn’t belong inside []. Much more readable to use zip, map, filter, etc. And more powerful. EDIT: that was meant for indexing lists. Strings inside [] for indexing ducts are fine.
Anything that’s not an integer or a range doesn’t belong inside
[]
. Much more readable to use zip, map, filter, etc. And more powerful.EDIT: that was meant for indexing lists. Strings inside
[]
for indexing ducts are fine.