[Python-ideas] Starap function exists but it seems there's not such thing as "doublestarmap"

Robert Vanden Eynde robertve92 at gmail.com
Wed Apr 10 06:08:37 EDT 2019


Le mer. 10 avr. 2019 à 12:55, Krokosh Nikita <de.lsnk at gmail.com> a écrit :

> I need smth like starstarmap('{a} / {b}/ {c}'.format, [{a:1, b:2, c:3},
> {a:4, b:5, c:6}, ...])


def starstarmap(f, it):
  return (f(**x) for x in it)

That looks like a recipe, not a basis function ^^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190410/cc6e1b14/attachment.html>

More information about the Python-ideas mailing list