guipn/sinful.js — pull request #20 by Mortchek (2012-12-31 08:46:32+00:00)
Title: Return an array from Number.prototype.times

`Number.prototype.times` currently works fine if it is passed an "action" – i.e., something that causes side effects – but it is less useful for the "pure" sort of functional computations we often want to do. This change fixes that by allowing us to return something useful, namely, the results of all the calls to the provided function as an array.

Also included is a separate commit that adds a test for `Number.prototype.times` even if you don't like the change. :)