A Success<T, E> represents a successful computation that returns a value of type T.

E in Success<T, E> is the type of the error that would have been returned in case of failure. It's present only to allow type safety of the isFailure method.

Type Parameters

  • T

    the success value type

Methods

Properties

Methods

Properties

value: T