Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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 (=
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
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