Dart list intersection
Ngày đăng:
03/01/2022
Trả lời:
0
Lượt xem:
14
I am properly misunderstanding your problem but it seems you can achieve the same output by doing this: If your lists are containing a lot of elements, it can be more efficient to use a Set like you are already doing. So it would look like this: Or put the logic inside its own method like this: All three solutions gives: Unsubscribe from X311 Unsubscribe from Y739 Unsubscribe from D3179 Subscribe to X319 Subscribe to Y732 Subscribe to D3183 |