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; } } }