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.

5
  • seq involves the execution of an external command which usually slows things down. Commented Oct 4, 2008 at 1:44
  • 16
    It doesn't involve the execution of an external command for each iteration, just once. If the time to launch one external command is an issue, you're using the wrong language. Commented Oct 6, 2008 at 12:57
  • 1
    So is nesting the only case where this matters? I was wondering if there was a performance difference, or some unknown technical side effect? Commented Jan 9, 2012 at 19:07
  • @Squeaky That's a separate question whichtis answered here: stackoverflow.com/questions/4708549/… Commented Sep 4, 2016 at 19:24
  • I've included this answer in my performance comparison answer below. stackoverflow.com/a/54770805/117471 (This is a note to myself to keep track of which ones I have left to do.) Commented Feb 19, 2019 at 16:34