Comment on I wish

Skyline969@lemmy.ca ⁨8⁩ ⁨months⁩ ago

Wow. Amateur hour over here. There’s a much easier way to write this.

A case select:

select(number){
    case 1:
        return false;
        break;
    case 2:
        return true;
        break;
}

And so on.

source
Sort:hotnewtop