nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 2年前I wishi.imgur.comexternal-linkmessage-square187fedilinkarrow-up1932
arrow-up1932external-linkI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 2年前message-square187fedilink
minus-squarerobotica@lemmy.worldlinkfedilinkarrow-up13·edit-22年前Don’t forget that you can have fall-through cases, so you can simplify it even further: switch (number) { case 1: case 3: case 5: case 7: case 9: ...
Don’t forget that you can have fall-through cases, so you can simplify it even further:
switch (number) { case 1: case 3: case 5: case 7: case 9: ...Teach me