• rollerbang
    link
    fedilink
    arrow-up
    32
    ·
    edit-2
    1 year ago

    You have to make it easy on yourself and just use a switch with default true for evens, then handle all the odd numbers in individual cases. There, cut your workload in half.