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.
This comment is hidden because it contains spoiler information about the solution
https://www.codewars.com/kumite/5c629522bee54342d8b05dc9?sel=5cbbcc8c7cfcad001a1263ed
Rust translation
Added to description
Rust translation
Rust translation
I've finally found the button. Feeling a little stupid. Should I approve fork or just give you link to it?
Fork
Solution that disallows function from function calling passes the test so you can assume it's disallowed to call one function from another
@GiacomoSorbi Well, I don't realize how to fork Kata. Maybe I have broken something trying to fork. Do I need to solve it in original language to fork? BTW how to find out which one is original language and which are translations? Wiki is not so much helping in understading Codewars interface.
Or it means that I cannot call one function from another?
Can function change arity after overwriting? I mean if I have
> fn f a => a
> fn g a b => a + b
> fn F a b => f g a b
then
F = f (g a b)
; but if I'll overwritef
andg
:> fn f a b => a + b
> fn g a => a
then
F
becomesF = f (g a) b
and that breaks AST tree forF
. When I started to code I thinked that if we have> fn f a => b
and then we have
> fn g a b => f a b
on input we should return error, but now I'm not sure.
Should I store functions as strings and recompile them at each call? In that case I'll need to accept almost any function as I cannot correctly detect another function calls in it and then return error only when function is used; or should I check function correctness when it's provided to me?
sort in Rust does not return anything so you can not compare
a1.sort()
witha2.sort()
.Rust translation
Well, I'm asking 3 years old question
This comment is hidden because it contains spoiler information about the solution
Loading more items...