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.
list comprehension
map() in python 2.x used to return a list, py3 it was changed so list(map(...)) must be used, see the solution replies for a better understanding
edit: basically it was solved in a previous py version
lua translation
The array is given / will be passed as the argument in the function.
You can read this if you are having trouble.
https://docs.codewars.com/getting-started/solving-kata
changed here
Lua translation
Fixed here
Lua Translation
edit: fixed two slight errors, updated link above
Lua Translation :D
Swift Translation plz accept :)
python tests are mixed with lists and dictionaries in random tests
Lua Translation
Not many random cases but it should still do the trick.
Sorry! I will fix that, but would I edit it or fork my translation? Will it get automatically changed or will it have to be re-accepted?
Will fix once I understand how to edit it properly. Thanks for the feedback
Lua Translation, would appreciate if you approve or give feedback; this is my first translation. Thanks for a fun and simple Kata.