From a9ac8b11f8ba1193a08d166695d151b595423a00 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Fri, 25 Mar 2011 09:46:28 -0400 Subject: [PATCH] Documenting zip as transpose. Issue #161 --- index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.html b/index.html index 55d90d816..215d06a6a 100644 --- a/index.html +++ b/index.html @@ -578,6 +578,8 @@ _.intersect([1, 2, 3], [101, 2, 1, 10], [2, 1]); Merges together the values of each of the arrays 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, zip.apply + can transpose the matrix in a similar fashion.

 _.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]);