66 lines
2.2 KiB
Java
66 lines
2.2 KiB
Java
package d0.f0;
|
|
|
|
import d0.z.d.m;
|
|
import java.util.Iterator;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.sequences.Sequence;
|
|
/* compiled from: Sequences.kt */
|
|
public final class u<T, R> implements Sequence<R> {
|
|
public final Sequence<T> a;
|
|
public final Function1<T, R> b;
|
|
|
|
/* compiled from: Sequences.kt */
|
|
public static final class a implements Iterator<R>, d0.z.d.g0.a {
|
|
public final Iterator<T> i;
|
|
public final /* synthetic */ u j;
|
|
|
|
public a(u uVar) {
|
|
this.j = uVar;
|
|
this.i = u.access$getSequence$p(uVar).iterator();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public boolean hasNext() {
|
|
return this.i.hasNext();
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public R next() {
|
|
return (R) u.access$getTransformer$p(this.j).invoke(this.i.next());
|
|
}
|
|
|
|
@Override // java.util.Iterator
|
|
public void remove() {
|
|
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
|
}
|
|
}
|
|
|
|
/* JADX DEBUG: Multi-variable search result rejected for r2v0, resolved type: kotlin.sequences.Sequence<? extends T> */
|
|
/* JADX DEBUG: Multi-variable search result rejected for r3v0, resolved type: kotlin.jvm.functions.Function1<? super T, ? extends R> */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public u(Sequence<? extends T> sequence, Function1<? super T, ? extends R> function1) {
|
|
m.checkNotNullParameter(sequence, "sequence");
|
|
m.checkNotNullParameter(function1, "transformer");
|
|
this.a = sequence;
|
|
this.b = function1;
|
|
}
|
|
|
|
public static final /* synthetic */ Sequence access$getSequence$p(u uVar) {
|
|
return uVar.a;
|
|
}
|
|
|
|
public static final /* synthetic */ Function1 access$getTransformer$p(u uVar) {
|
|
return uVar.b;
|
|
}
|
|
|
|
public final <E> Sequence<E> flatten$kotlin_stdlib(Function1<? super R, ? extends Iterator<? extends E>> function1) {
|
|
m.checkNotNullParameter(function1, "iterator");
|
|
return new h(this.a, this.b, function1);
|
|
}
|
|
|
|
@Override // kotlin.sequences.Sequence
|
|
public Iterator<R> iterator() {
|
|
return new a(this);
|
|
}
|
|
}
|