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*

9
  • 3
    $\begingroup$ Rather than post a separate answer perhaps something about packed arrays could be added to this answer. This is a handy link: library.wolfram.com/infocenter/TechNotes/391 $\endgroup$ Commented Jan 25, 2013 at 3:27
  • 4
    $\begingroup$ What are the performance advantages of avoiding procedural loops? I suppose some people may resort to them for readability. $\endgroup$ Commented May 23, 2013 at 1:17
  • 4
    $\begingroup$ @BlackMilk late answer, I know, but triply nested For loops are NOT more readable than the alternatives. $\endgroup$ Commented Dec 24, 2013 at 3:53
  • 7
    $\begingroup$ @timoftebogdan. I disagree- this is a site about Mathematica, so it is not relevant if nested loop-itis is popular in other languages. And Map is a lot more readable than For...etc $\endgroup$ Commented Dec 11, 2014 at 18:11
  • 5
    $\begingroup$ With present Mathematica technology, one is forced to use loops if the data set being operated on does not fit in physical memory. In these cases the values must be generated and used at each step of possibly nested loops. $\endgroup$ Commented Jul 27, 2015 at 11:08