mirror of
https://github.com/wgh136/pixes.git
synced 2025-09-27 12:57:24 +00:00
9 lines
186 B
Dart
9 lines
186 B
Dart
class Pair<M, V>{
|
|
M left;
|
|
V right;
|
|
|
|
Pair(this.left, this.right);
|
|
|
|
Pair.fromMap(Map<M, V> map, M key): left = key, right = map[key]
|
|
?? (throw Exception("Pair not found"));
|
|
} |