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*

2
  • $\begingroup$ The FoldList two arguments syntax has been introduced silently with version 10. I added the traditional 3 arguments syntax for older versions. $\endgroup$ Commented Oct 2, 2015 at 11:27
  • $\begingroup$ I was not originally looking for FoldList but this answer will be the easiest to follow when I (or more importantly, someone else) comes across it again so I have selected it. $\endgroup$ Commented Oct 19, 2015 at 19:18