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.

9
  • 1
    $\begingroup$ @johnpeter Why? Apply is really more appropriate here, and you did explicitly say that you want to learn to use #1, #2, ..., #n, which will only be useful if you go with Apply. $\endgroup$ Commented May 9, 2013 at 23:03
  • 1
    $\begingroup$ i'm just starting to learn. :-) I guess in this particular case, I was trying to learn how to express the same Map expression differently using #'s. Now I understand what I'm doing wrong, and all of the first 3 answers did help me! $\endgroup$ Commented May 9, 2013 at 23:27
  • $\begingroup$ @Artes I presume you mean worst for execution time? Given that Map[] auto compiles and @@@ doesn't I don't think the streamlined tests on the linked page you gave tell the whole story. Other than that there are conceptual concerns. You could argue for Apply there as well, but one point here is that you never move away from the data as a List by keeping it conceptually simple with Map[]. $\endgroup$ Commented May 9, 2013 at 23:43
  • $\begingroup$ @SEngstrom If you don't believe, provide your own tests. You'll convince of that. $\endgroup$ Commented May 9, 2013 at 23:48
  • $\begingroup$ @Artes So yes to performace? $\endgroup$ Commented May 9, 2013 at 23:49