On Tue, May 31, 2016 at 8:55 AM Sven R. Kunze <srkunze@mail.de> wrote:
On 31.05.2016 13:39, Lorenz wrote:
> I agree that when I was starting out with python this tripped me up a couple of times but Marc-Andre pointed out it is not necessarily easy to solve in a generic way.
However, I think that's the reason why it's not so easy to do in a
general manner.

I think comprehensions are doing pretty well at solving the general case.