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.
This comment is hidden because it contains spoiler information about the solution
I like it too! You learn so much more specific things about the language!
Oh! Yeah! Looks better now! This also helps to make better katas in the future. :)
Thank you so much for your efforts! I really appreciate that!
In my opinion the description is confusing. It says to pass a block to the method, but the example passes a lambda. If you really want to pass a block (which would be more "Ruby"-like I guess), it would look something like this
Conjurer.conjure(:one_through_five) {(1..5).to_a}
This is a slightly different syntax (note the closing
)
, the missing->
and,
).I have added a note about that in the description! Thank you!
Wow! Nice! I definitely have to learn more about the "pack" and "unpack" methods!
Oh yeah! Thanks! I made the change!
Regarding the method name I am not sure. On the one hand readable names are always a plus, but on the other hand "ntoh" and "hton" are quite established method names in operating systems for this matter. I thought this would bring some recall value later on for someone seeing this method names somewhere else.
But should be a readable name more prefereable to the Codewars community, I can change that. This is my first kata and I am eager to learn!