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
Great tip, thanks a lot! You're right, I did not pay attention on this.
http://stackoverflow.com/questions/3230944/what-does-predicate-mean-in-the-context-of-computer-science
A predicate is a function that takes an input and returns a boolean as a filter criteria. Filtering is a common operation.
If you take a look at the test cases, the argument
p
supplied to your method is a predicate function, not an array.The array it is called on is
this
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution