Ok<T, E> constructor

const Ok<T, E>(
  1. T value
)

Creates one successful result.

const result = Ok<int, String>(42);

Implementation

const Ok(this.value);