stdlibx.option.methods.result module

stdlibx.option.methods.result.ok_or(opt, error)[source]
Parameters:
  • opt (Option[T])

  • error (E)

Return type:

Result[T, E]

stdlibx.option.methods.result.ok_or_else(opt, error)[source]
Parameters:
  • opt (Option[T])

  • error (Callable[[], E])

Return type:

Result[T, E]

stdlibx.option.methods.result.transpose(opt)[source]
Parameters:

opt (Option[Result[U, E]])

Return type:

Result[Option[U], E]