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't compare referenced item in the slice (cosider our slice param is a reference) to an actual owned value, you need to compare matched types.
In our case i is reference == &i and you need to compare it with reference &0.
You might also use dereference here
*i
and compare it to more common 0if l
should be enough, if you want to be more explicit you can use iflen(l)
, but for me it's a bit overwhelming