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.
Yes, the input validation was removed.
The tests now only pass valid inputs.
I refactored the description.
try to replace
function snailArr
by closure$snailArr = function(){}
or declare the functionfunction
outside of the of the
snail
function. :)Java programmer detected.
Duplicate.
Simple Pig Latin
I guess you should improve the tests and description.
The test should cover:
Ex:
['b','x','a','j']
Ex:
['m','i','a','j','m']
The kata was unclear and the houses was not preloaded by default.
Houses should be passed to the function, to avoid access outter scope.
"Not the greatest description.":
"Apparently, we are to implement function composition,":
"I don't even know if it's some variant of C or Java":
"I may not speak C, but I do speak Haskell, where function composition is right to left by default!":
"The example tests introduce a requirement to silently ignore invalid input, which is wrong in several ways."
"..and finally there's something about making a request. I have no clue what that is about.":
"Descriptions should be self-contained, so external references should not be essential...":
No, I didn't read the documentation.
I unpublished the kata, I think I'm not prepared yet to publish it.
I'm not a native english speaker, and my english is better at reading than writing.
It's similar Pipelining and composing functions, but the difference is: the function which is passed to the "createPipeliine" receive 2 params, the "value" and
"next" param.
The "next" param is a function that call the next step in pipeline. So the developer can abort the chain by simple not calling the "next" param, execute the code before or after call the "next".
No you shouldn't use operators "&&" "? :" "||" "+" only functions.
Think the functions True and False as "if/else" statements.