I am interested in executing the following command but don't know the proper syntax to distinguish between nested arguments, here at the Select
and Map
levels. For example,
Map[Select[secondList, StringMatchQ[myFunction[#], #] &] &, firstList]
where myFunction
is being applied to the elements in secondList
and the second #
is using the element passed to Select
from Map
(i.e. members of firstList
).
Unfortunately, I don't have a solid enough understanding of Mathematica to figure out the correct syntax. Can anyone help me do this?
Function
with a function in general. Please read the linked documentation and you'll see that you can use it directly withinMap
. $\endgroup$ – Sjoerd C. de Vries May 29 '15 at 17:58