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.
But we don't want a string here, we want a single char.
It is for "n < 3" cases, where
extend
causes reallocation with capacity 3.why truncate?
In rust we have a handy little macro that manages these things ((x + 48) as char) for us.
format! accepts the same arguments as print!, but it yields a string rather than printing to stdout