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.
sum (x:y:z:[])
=sum [x, y, z]
(-) 74
=(74 -)
flip (/) 30
=(/ 30)
Use an as-pattern here to avoid re-cons after your cons pattern match:
Pointfree go brrrrr...
This is clearly wrong, how did this even get approved?
oddOrEven [0, 1]
returns"even"
.TL;DR
a very very long way of writing
solution = lambda v: len([x for x in v if x is True]) > 1
Top one is actually quite good. If it were for real, I would write it as a proper named function. That way is real nice for avoiding duplication, and something I didn't think of.
100% cursed. Love it.
What? Well, yes, that's true, but I didn't write this one. Just pointed out that shortcoming.
Fun fact - I have 0% chance of figuring out how this works.
You have to add test cases
24 characters shorter, and I respected proper formatting rules (still a joke solution though).
Fair enough reasoning, I suppose.
If its software running locally, its fine. I would not reccomend this for networked applications.
This is a bad idea - what if someone did something like this:
Calculator("+ 0;", "0 ", "print('Thanks eval')")
? It may be shorter but you have just opened up this simple program to vulnerabilities.nice!
Loading more items...