On Fri, 14 Aug 2020 at 11:10, Chris Angelico rosuav@gmail.com wrote:
IMO the collections module isn't really right for something like that, but if you really need a helper function for this one-liner, then I'd say having one in your own code is perfectly reasonable.
In my experience I used it a lot, and I saw many devs online that implemented their solution or asked about it. Not sure if collections module is appropriate, but IMO an helper function will be very useful.
@Steven: I continue the discussion with your objections in private.