extend<Z> method

  1. @override
Either<L, Z> extend<Z>(
  1. Z f(
    1. Either<L, R> t
    )
)
override

Change the value of Either from type R to type Z based on the value of Either<L, R> using function f.

Implementation

@override
Either<L, Z> extend<Z>(Z Function(Either<L, R> t) f) => Either.of(f(this));