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.
you can use list slices
That return actually outside the loop, because he didnt add {}. The loop without curly bracket only take one action.
No, you have to return
n
numbers of the sequence, counting the ones of the signature too. So, the signature always has 3 elements, but ifn
is 0, you return an empty array/list, whenn
is 1, the first element of the signature, etc. I hope it is clearer now.You're confused there, signature always has 3 numbers:
n
can be less than 3.