pairs<K, V> method
Implementation
Iterable<Pair<K, V>> pairs<K, V>() sync* {
for (final iterable in this) {
if (iterable.length == 2) {
yield Pair<K, V>(iterable.elementAt(0), iterable.elementAt(1));
} else {
throw ArgumentError.value('Pair has a length of: ${iterable.length}, should be 2');
}
}
}