7 kyu
Enumerable Magic #5- True for Just One?
1,887 of 4,317bellmyer
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 comment has been hidden.
Language: C
Error messages are unclear.
The expression (one(((void*)0), 0, &always_true)) == (0) is false.
As a 7kyu kata, I Suggest fixing error messages for clearer understanding of the errors.
kreative kata
this issue concerns the programming languge of C. this issue is not a big deal. this issue is that tests generate warnings. here is a paste of the warnings:
Hi everybody! Guys, Im newbie here and I try to figure out how do tasks (katas) here. The question is: can I use only one function that i got at preconditions(from the start of a task) in SOLUTION table or I can create another one if needed?
so long as you don't have a naming conflict, you can create multiple helper functions outside of the main kata function and use them in any way you want. of course, in python you can also create functions that are nested within the main kata function.
OP solved it, closing
Haskell translation
OP is long gone. Any power user want to approve this?
Approved!
Python translation:
https://www.codewars.com/kumite/5e7b265f803170002597afb2?sel=5e7b265f803170002597afb2
C#-Translation kumited!
https://www.codewars.com/kumite/57bfee27def38b3be900000e
Please check and approve it! :-)
JS translation kumited.
I think the description can be improved to make it a bit more clear what is expected.
Original: Create a method one? that accepts a list and a block, and returns true only if the block returns true exactly one (and only one) item in the array.
Modified: Create a method one? that accepts two params, a list and a block, and returns true only if the block returns true for exactly one item in the array.
As a native English speaker, this change makes it clearer, and doesn't require the extra '(and only one)" qualifier.
This comment has been hidden.