Is there a shorter way to write `[f(a,b) for a in A, b in B]`

or `map(Base.splat(f), Iterators.product(A,B))`

? I’m looking for something like `prodmap(f, A, B)`

.

1 Like

A couple of alternatives:

```
f.(A, B')
f.(A', B)
using SplitApplyCombine
product(f, A, B)
```

Also, if you do this regularly, it can be cleaner and more convenient to write `f`

that accepts the whole object instead of two separate arguments, and apply it then directly without splatting.

3 Likes