| OLD | NEW |
| (Empty) | |
| 1 Dart Utilities Used By dart:sky |
| 2 =============================== |
| 3 |
| 4 The classes defined here are used internally by dart:sky but are |
| 5 pretty generic. |
| 6 |
| 7 ```dart |
| 8 class Pair<A, B> { |
| 9 const Pair(this.a, this.b); |
| 10 final A a; |
| 11 final B b; |
| 12 int get hashCode => a.hashCode ^ b.hashCode; |
| 13 bool operator==(other) => other is Pair<A, B> && a == other.a && b == other.b; |
| 14 } |
| 15 |
| 16 // MapOfWeakReferences can be implemented in C, using the C Dart API, apparently |
| 17 class MapOfWeakReferences<Key, Value> { |
| 18 external operator[](Key key); |
| 19 external operator[]=(Key key, Value value); |
| 20 external bool containsKey(Key key); |
| 21 } |
| 22 ``` |
| OLD | NEW |