Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kbp
on Oct 12, 2018
|
parent
|
context
|
favorite
| on:
Asterisks in Python
Oh, or more directly:
[f(a, b) for a, b in it.permutations(some_list, r=2)]
And then you could also use itertools.starmap instead of using a comprehension at all, if you wanted.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: