34 lines
931 B
Java
34 lines
931 B
Java
package d0.f0;
|
|
|
|
import d0.z.d.m;
|
|
import java.util.HashSet;
|
|
import java.util.Iterator;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: Sequences.kt */
|
|
/* loaded from: classes3.dex */
|
|
public final class b<T, K> extends d0.t.b<T> {
|
|
public final HashSet<K> l = new HashSet<>();
|
|
public final Iterator<T> m;
|
|
public final Function1<T, K> n;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public b(Iterator<? extends T> it, Function1<? super T, ? extends K> function1) {
|
|
m.checkNotNullParameter(it, "source");
|
|
m.checkNotNullParameter(function1, "keySelector");
|
|
this.m = it;
|
|
this.n = function1;
|
|
}
|
|
|
|
@Override // d0.t.b
|
|
public void a() {
|
|
while (this.m.hasNext()) {
|
|
T next = this.m.next();
|
|
if (this.l.add(this.n.invoke(next))) {
|
|
b(next);
|
|
return;
|
|
}
|
|
}
|
|
this.j = 3;
|
|
}
|
|
}
|