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.
Why, what's the problem? Care to elaborate?
I'm a little bit scared of the production code of the 130+ people that voted this as being Best Practice...
hooollyy!!! hahahaha
I feel like you just punched me in the face with how much better this is than mine
Is clever af :v
Congratulations,
your solution is brilliant because is simple and clean. It's the solution that teacher shows in class.
you give me 25 cents, ty mate
How exactly does PEP20 apply in this situation?
Why not at least clever? :)
This is definitely neither clever not best practive..PEP20
Sorting can be very expensive if the lists are sizable.
Does someone else consider this less readable and intuitive than, for example, cjvirtucio87's one?
ah, I got it. Since everything in ruby is an object. So, if I do self ===, it will be equal to self.===, hence it will call the approriate method for the object self which is a string here. On the other hand, if I do /\A\d\z/.===, it will call "another kind" of === method since the object here is an regex.
Thanks very much, and have a nice day.
no 'self ===' it is String method === , '/\A\d\z/ ===' it is Regexp method ===
Hi everybody, I don't why I can't pass the test if I do like this:
self === /\A\d\z/
I think they are the same solution, right?
Loading more items...