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.
recursive, so probably slower
The cascade operator (..) allows you to perform a sequence of operations on the same object. In this case, it sorts the array in place.
better readability
I'm wondering the same thing. Anyone?
when using one point, the return type changes to void, but by using two points, the sorting process is ignored, and the list is returned with the same type with sorting application.
This comment is hidden because it contains spoiler information about the solution
Indeed many solutions directly filter out string values and leave everything else in the list, but as @Chrono79 said the Kata input only consists in intgeres and strings.
Furthermore, there exist realistic cases in which one can be interested in retaining only integers or filtering out only specific data types.
Please use spoiler flag next time.
The input contains only non-negative integers and strings.
Does your code work in other environments with exactly the same data samples which make you fail tests on Codewars?
Potentially helpful reading: https://docs.codewars.com/training/troubleshooting#print-input