<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin: 0px; font-size: 12px; ">It seems that the looping constructs don't currently return a value. In other words, they don't return an array of the results. CoffeeScript allows for both scenarios, that is, looping for side-effects and looping that returns an array of results. I'm thinking it would be very useful to have dotimes*, dolist*, for-in*, etc. that return an array of results. Below is an example from <a href="http://coffeescript.org">coffeescript.org</a>. Let me know what you think.</div><div style="margin: 0px; font-size: 12px; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; ">David</div><div style="margin: 0px; font-size: 12px; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; font-family: Courier; ">countdown = (num for num in [10..1])</div><div style="margin: 0px; font-size: 12px; font-family: Courier; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; font-family: Courier; ">------------------------------------</div><div style="margin: 0px; font-size: 12px; font-family: Courier; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; font-family: Courier; ">var countdown, num;</div><div style="margin: 0px; font-size: 12px; font-family: Courier; min-height: 14px; "><br></div><div style="margin: 0px; font-size: 12px; font-family: Courier; ">countdown = (function() {</div><div style="margin: 0px; font-size: 12px; font-family: Courier; "> var _i, _results;</div><div style="margin: 0px; font-size: 12px; font-family: Courier; "> _results = [];</div><div style="margin: 0px; font-size: 12px; font-family: Courier; "> for (num = _i = 10; _i >= 1; num = --_i) {</div><div style="margin: 0px; font-size: 12px; font-family: Courier; "> _results.push(num);</div><div style="margin: 0px; font-size: 12px; font-family: Courier; "> }</div><div style="margin: 0px; font-size: 12px; font-family: Courier; "> return _results;</div><div style="margin: 0px; font-size: 12px; font-family: Courier; ">})();</div><div style="margin: 0px; font-size: 12px; font-family: Times; min-height: 14px; "><br></div></body></html>