Suppose that I have
f[a_, b_, x_] := ...
I'd like to create a list of n pure functions
{f[1, 4, #]&, f[2, 5, #]&, f[3, 6, #]&, ...}
from two lists of length n like
as = {1, 2, 3, ...}
bs = {4, 5, 6, ...}
What can I do?
Given g[a_, b_] = ..., I know that to get {g[1, 4], g[2, 5], g[3, 6], ...} is to use MapThread[g, {as, bs}], but I don't know how to extend this idea to solve the above problem.
Withto do it for you,MapThread[With[{a = #1, b = #2}, f[a, b, #]&]&, {as, bs}]– rcollyer Oct 22 '14 at 17:19