var pairs = [
[1, 2],
[2, 2],
[2, 3],
[4, 4]
];
count4(x, y, pairs) {
var same_count = 0;
for (final x,final y in pairs) {
if (x == y) {
same_count += 1;
}
}
return same_count;
}
This code with similar syntax works in python, but i am trying to implement it in dart and running into all sorts of errors. Any ideas how i can re-write the syntax to make it work?