getRights<L, R> static method

Iterable<R> getRights<L, R>(
  1. Iterable<Either<L, R>> iterable
)

Implementation

static Iterable<R> getRights<L, R>(Iterable<Either<L, R>> iterable) sync* {
  for (var either in iterable) {
    if (either is Right<L, R>) {
      yield either.value;
    }
  }
}