intersect method
Implementation
InkList intersect(InkList otherList) {
var intersection = InkList();
for (var kv in entries) {
if (otherList.containsKey(kv.key)) {
intersection[kv.key] = kv.value;
}
}
return intersection;
}
InkList intersect(InkList otherList) {
var intersection = InkList();
for (var kv in entries) {
if (otherList.containsKey(kv.key)) {
intersection[kv.key] = kv.value;
}
}
return intersection;
}