Share your repls and programming experiences

← Back to all posts
#WEEKLY challenge 4 number thing
a5rocks (821)

For a while I was disappointed that my language of choice doesn't have a case statement, but then I realized I could just do this:
return ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine'][ones_place].

Thanks for coming to my ted talk...

BTW this would have been much cleaner in Elixir.

CodingCactus (4132)

i'm not sure if this is correct

a5rocks (821)

@CodingCactus oops... I also noticed something else I did wrong: sixty- instead of sixty... :(

Fixed both of them just now though!