zip function
Zips two arrays Credit
Example
_.zip(['a', 'b', 'c'], [1, 2, 3]);
// Returns [['a', 1],['b', 2],['c', 3]]
Implementation
List zip(List a, List b) {
return a.map((e) {
final int index = a.indexOf(e);
return [e, b[index]];
}).toList();
}