Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • $\begingroup$ After writing my (updated) answer it seemed strangely familiar. I believe we have a duplicate: (20713) -- please review that Q&A; if you agree this is a duplicate I will close and delete my answer. $\endgroup$ Commented Aug 26, 2013 at 2:15
  • $\begingroup$ @Mr.Wizard yeah the problem is alike. But I have a question. You suggest in the comment to use f @@ # & to get f[i,j]. What if my function is f[parameter1,i,parameter2,j]? $\endgroup$ Commented Aug 26, 2013 at 2:56
  • $\begingroup$ If I understand you would want f[parameter1, #, parameter2, #2]& @@ # & or perhaps better in that case: f[parameter1, #[[1]], parameter2, #[[2]] ]& $\endgroup$ Commented Aug 26, 2013 at 3:01
  • $\begingroup$ @Mr.Wizard Damn! How could I be so stupid. Just a little trick. Why it just can't come into my mind. Thank you, Mr. Wizard $\endgroup$ Commented Aug 26, 2013 at 4:00
  • $\begingroup$ Don't be so hard on yourself. I make lots of mistakes, and miss or forget plenty of good "tricks." $\endgroup$ Commented Aug 26, 2013 at 4:42