Changed lume.shuffle() to not operate in-place, updated doc + tests

This commit is contained in:
rxi
2015-01-10 16:21:57 +00:00
parent ac10d54b47
commit 4373a202dc
3 changed files with 9 additions and 5 deletions

View File

@@ -75,7 +75,7 @@ lume.weightedchoice({ ["cat"] = 10, ["dog"] = 5, ["frog"] = 0 })
```
### lume.shuffle(t)
Shuffles the values of array `t` in place, returns the array.
Returns a shuffled copy of the array `t`.
### lume.array(...)
Iterates the supplied iterator and returns an array filled with the values.