@[email protected] to Lemmy [email protected]English • 8 months agoI wishi.imgur.commessage-square185fedilinkarrow-up1906
arrow-up1888imageI wishi.imgur.com@[email protected] to Lemmy [email protected]English • 8 months agomessage-square185fedilink
minus-squareroboticalinkfedilink13•edit-28 months agoDon’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