17 lines
446 B
Java
17 lines
446 B
Java
package ch.fritteli.gombaila.domain;
|
|
|
|
import ch.fritteli.gombaila.ElementWalker;
|
|
import io.vavr.collection.Seq;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class SeqWalker<E> extends ElementWalker<Seq<E>, E> {
|
|
public SeqWalker(@NotNull final Seq<E> seq) {
|
|
super(
|
|
seq,
|
|
(back, index) -> index < back.length(),
|
|
(back, index) -> index > 0,
|
|
Seq::get
|
|
);
|
|
}
|
|
}
|