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.
I'm getting the following error in Lua - the 'same' function requires a minimum of 2 arguments, got: 1
Any suggestions?
Thanks
I'm doing the Lua translation and getting the following error - the 'same' function requires a minimum of 2 arguments, got: 1.
What am I missing?
I'm doing this in Lua and new to it, but getting the error - 'same' function requires a minimum of 2 arguments, got: 1
What am I missing?
Ah, yes, I hadn't accounted for there already been somebody at the till. Cheers
Can this be explained please?
Add a dummy
return true;
to avoid that, that error is not related to printing to the console tho, it's about the lack of a return in your function.@akar-0 I appreciate the response and tips! new to his and figuring it out. Thank you :).
No. Read the description again. And if you don't get it, look at the test cases and think. Beware:
About all this, and more, I strongly advice you to read the documentation: https://docs.codewars.com/curation/translation
This comment is hidden because it contains spoiler information about the solution
It just logs - src/Solution.cs(6,24): error CS0161: 'LoveDetector.lovefunc(int, int)': not all code paths return a value
I added Console.WriteLine inside the curly brace. Is that correct? cheers
That should work, at least, it worked for me when I tried it.
I'm new to C#,can anyone advise me one how to print variable values to the console please, like using console.log() in Javascript. I've tried Console.WriteLine(flower1) however,it doesn't print to the console.
Thanks
Getting Error occurred in test script './test.ps1' when trying Powershell,any suggestions? thanks