Skip to content

Commit

Permalink
including Array.riffle in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Stephens committed Jan 22, 2014
1 parent d9cd957 commit 71224fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,11 +1,11 @@
# riffle

Extends `Array` by defining `Array#riffle` to merge multiple arrays as if
Extends `Array` by defining `Array#riffle` and `Array.riffle` to merge multiple arrays as if
[riffling a deck of cards](http://en.wikipedia.org/wiki/Shuffling#Riffle).

**Algorithm Description**

`Array#riffle` iterates over argument arrays and selects a random number
`riffle` iterates over argument arrays and selects a random number
of items from each to remove from the front (this default subsequence
length, or *group size* is in `(1..3)`). The removed items are then
appended to a new array which is returned as the result after all items
Expand Down

0 comments on commit 71224fc

Please sign in to comment.