Let's define an arbitrary function
someFunc a b = ...
if I ever need it, I know I can do something like
map (someFunc a) [b0, b1, b2, ..., bn]
and I'll get as result
[(someFunc a b0), (someFunc a b1), ..., (someFunc a bn)]
There is nothing new here. But what if instead of using the map's 2nd argument to vary b, I wanted to vary a (a "inner" argument)?
map (someFunc ? b) [?0, ?1, ?2, ..., ?n]
Is there any way to accomplish this in Haskell? If not, what would be the work around for this?
I know I probably wasn't very clear about what I'm posting about. If needed, I can try to reformulate my question :(