I love looking at problems with “no solution” in languages to stretch my mind. Here’s a fun one from Ruby.

In Ruby, there’s not a good way to map over a subclass of Array and get the same subclass back.

That is, if you start with this code:

class Array
  def but_doubled
    map { |x| x * 2 }
 ...