Ad
  • Custom User Avatar

    Fl4m3Ph03n1x told me, that would be better to use pattern matching in this kata. Cause my first decision was awful.
    So, he's right. Recommended it for you too (=

  • Custom User Avatar

    Yeap. Other solutions opened only when I'm done with this task...but it was too late...
    Thank's
    I'll try to keep in mind pattern matching...Elixir a little bit different for me

  • Custom User Avatar

    This is quite literally how you shoud not do an exercise.
    You simply checked for all the test cases and hardcoded them all.

    What if tomorrow the zoo gets another anmial? Will this function have a case for all of them?
    This will be impossible to maintain.

    Check the other solutions and remember: pattern matching is your friend :D