I have two lists that I have confirmed are the same length. I want to operate on them at the same time. My code currently looks something like this:
var a = [1, 2, 3];
var b = [4, 5, 6];
var c = [];
for(int i = 0; i < a.length; i++) {
c.add(new Foo(a, b));
}
It seems a bit clunky to count up to the length of list A in this fashion. Is there a nicer and more Dart-y way of accomplishing this task?