flatMap<R> method

Result<R> flatMap<R>(
  1. Result<R> func(
    1. T value
    )
)

flat map result

Implementation

Result<R> flatMap<R>(Result<R> Function(T value) func) {
  return fold(Result.error, func);
}