transf<R extends Object> abstract method

Monad<Object> transf<R extends Object>([
  1. @noFuturesAllowed R noFuturesAllowed(
    1. T e
    )?
])

Transforms the Monad's generic type from T to R.

Uses the transformer function noFuturesAllowed if provided, otherwise attempts a direct cast.

Implementation

Monad transf<R extends Object>([
  @noFuturesAllowed R Function(T e)? noFuturesAllowed,
]);