Skip to content

Commit

Permalink
Documenting zip as transpose. Issue #161
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Mar 25, 2011
1 parent 6d4b767 commit a9ac8b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.html
Expand Up @@ -578,6 +578,8 @@ <h2>Array Functions</h2>
Merges together the values of each of the <b>arrays</b> with the
values at the corresponding position. Useful when you have separate
data sources that are coordinated through matching array indexes.
If you're working with a matrix of nested arrays, <b>zip.apply</b>
can transpose the matrix in a similar fashion.
</p>
<pre>
_.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);
Expand Down

0 comments on commit a9ac8b1

Please sign in to comment.