Retired
Are arrow functions odd? (retired)
9,367 of 14,930acraileanu
Loading description...
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
This fork updates JavaScript to Node 18
Approved by a roaming mod
Shouldn't it be tested that the function is indeed a lambda/closure/... ?
i find it odd that the default code has nothing to do with the problem
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/139.
Please join the discussion to help us identify duplicate kata and retire them.
Retired as a duplicate.
Hello,
Could you please check and approve the Java Translation (https://www.codewars.com/kumite/62124fda1d5475001661ee49?sel=62124fda1d5475001661ee49) of the kata.
Thanks
Description is unclear and allows totally dissimilar implementations. Are we supposed to write a class method, a function? I have solved this kata with no problem in several language, but I'm not very competent in Ruby and I have no idea what I'm supposed to do in this language.
Why does the example text assign a lambda expression to a variable? This is against PEP 8 style guide IIRC and def(x) is preferred.
Maybe because there aren't arrow functions in Python and it was the most similar?
Interesting Kata, though having a misleading and incomplete description which prevents the user from understanding why it could fail. Please correct it! Thanks
I think that the program to see if the solution is correct is wrong, in my python shell my method works but in here it doesnt. Im not sure if maybe its because i use python 3.8 and this kata uses another version of python, does anyone have any advice?
With no information from you, no one can help you. What errors are you getting, to begin with..? Python 3.8 is used by CW too, so it shouldn't be version problem.
Are you failing some tests or all of them? Maybe there is some small error in your code.
Initial code template similar to JS and C# should be used for all languages. Not sure if this should be labelled as an 'issue', so just suggestion for now.
Python (previous one rejected) and Ruby translation kumited :) please review and approve ~~
You should encourage using a lambda (~arrow function) in ruby by putting one in the initial solution, and by using lambda calls: e.g.
odds[[1,2,3]]
(instead ofodds([1,2,3])
)On the other hand, it doesn't make much sense in python, as there are no arrow functions.
It doesn't really make sense to have a python (and ruby to some extent) translation for this, IMO :/
updated Ruby; python should be deleted IMHO...
just because it's spelled
lambda :
instead of() =>
doesn't make it a different thing >_<Need Haskell 8.2 support for forward compatibility.
Once again, something that works in Brackets doesn't work here. I'm confused by that. Does anyone have a suggestion. Thank you.
Can you provide more info on the issue you are having?
Hi @acraileanu, I wrote a C# translation for this Kata. Can you approve it here?
Thank you! Translation has been added.
Elixir should be upgraded to 1.5. Present version (1.2.4) is really old and does not allow solutions which are possible with 1.5
Not a kata issue.
Closing.
This should be marked with the ES2015 tag.
Added.
Thanks acraileanu!
This comment has been hidden.
This comment has been hidden.