extend<Z> abstract method
Extend the type by applying function f
to it.
final option = Some(10);
final value = option.extend((t) => t.isSome() ? 'valid' : 'invalid'); // -> Some('valid')
Implementation
HKT<KT, Z> extend<Z>(Z Function(HKT<KT, A> t) f);