Mr_Cartoon (Mr Cartoon)
- Login: Mr_Cartoon
- Registered on: 09/28/2018
- Last sign in: 11/07/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
09/28/2018
-
09:30 PM Ruby Bug #15174 (Rejected): Sorting array of elements using "&:size" block, in which more than 1 element
- Example with ranges(first with what defined bug), but also tested on strings, symbols, integers
Good
~~~ ruby
[1..2].sort { |x| x.size }
[1..2, 4..5].sort { |x| x.size }
[1..2].sort(&:size)
~~~
Bad
~~~ ruby
[1..2, 4..5].sort...