andrewplummer/Sugar — pull request #398 by sylvainpolletvillard (2013-12-02 20:20:48+00:00)
Title: added Number#times|String and Number#times|array

Hi,

Here are two additions for Number.times() function I found useful.
```(3).times([1,2,3]) // returns [1,2,3,1,2,3,1,2,3]```
```(3).times("Ho") // returns "HoHoHo"```

times(String) is basically an alias for String.repeat() which improves readability in some cases. However, I did not found an easy way to repeat an array X times. With times(Number) it's piece of cake to initialize an array with numbers : ```100..times([0])```