in reply to Re: What would you do?
in thread What would you do?

This is effectively the same thing as bjelli's solution above, with a map instead of a for, and no temporary variable. It is somewhat less efficient due to the use of map in a void context, which is usually considered bad programming practice.