Created
March 17, 2014 17:18
-
-
Save SLaks/9603883 to your computer and use it in GitHub Desktop.
Zip(...array, cb)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int[] arr1 = { 1, 2, 3 }; | |
int[] arr2 = { 4, 5, 6 }; | |
var result = Enumerable.Zip(arr1, arr2, (a, b) => a + b); | |
// 5, 7, 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr1 = [ 1, 2, 3 ]; | |
var arr2 = [ 4, 5, 6 ]; | |
var result = _.zip(arr1, arr2, function(a, b) { return a + b; }); | |
// 5, 7, 9 |
jdalton
commented
Mar 17, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment