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.
OP solved it, closing
I was talking about
.capacity
, not the other one.Why? There is really no reason to do that. I've never seen that method ever used in any kata, for obvious reasons (if you read its documentation). It probably has its uses elsewhere.
No need to repeat the same question. Capacity might not work as you expect (for example it returns 15 for "abc"). There are other better methods for that purpose.