11
mundo03
7y

If is funny when you see a code challenge that requieres to reverse and array and you use ruby.

array.reverse! #fucking done

Comments
  • 5
    C#: array.Reverse();
    F#: Array.rev array
    JS: array.reverse();
    PHP: array_reverse($array);
    Java: Collections.reverse(Arrays.asList(array));

    Not really a challenge when you know your APIs
  • 0
    Well, even in C it would be trivial
  • 2
    Using the built in method is like cheating yourself
  • 0
    @nocgod well how bou'dat.
    I come from VBA and used ti reverse it myself on the challenges... I hooe there is no damn reverse method.. i don't even want to know.
  • 0
    @nocgod +2000 for that.
Add Comment