Err<T, E> constructor

const Err<T, E>(
  1. E error
)

Creates one failed result.

const result = Err<int, String>('invalid count');

Implementation

const Err(this.error);