Ok I guess it was my bad, because not all threads finished, sry :)
hmmm I am not sure what to do here. It's somewhat difficult to handle an issue report with this amount of details.
Maybe I'm just missing something but locally everything works :/
6th kyu? Functional techniques make such short work of this kata!
Thank you for mentioning this!
I have a question. How I can use counter.count() in run() method? counter is initialized in another class. And run() method takes only int i as parameter. Should I override it, so that it would be like run(int i, Counter count). I'm not sure if it's possible to override including new parameter. Cause in the examples i found, only the body of a method has been changed.
Would anyone be able to help:)? I'm getting errors saying that I'm not returing anything. Well, it's not the task to return, but to call the count() method with the correct parameter which I do ;|
Is the implementation of counter() method taking care of returing the i? My code is running properly on my local machine (where I've implemented a simple Counter class with counter() and a println) but when I migrate the countInThreads logic to this kata it fails. I wonder what's the implementation of Counter class here
This uses functions that are not total (head, tail), so definitely not “best practices”.
This comment is hidden because it contains spoiler information about the solution
JS: camelCase should be used for the function name.
I cleared up some of the mess. Hope it's better now.
JS: assert.equal should be used.
Whilst doing so, please update to Node v10.x.
breaks on "".