import { Result , ResultKind , ResultOk , ResultErr } from './types' ; /**
 * Generates an Ok Result<T, E>
 */ export function Ok < T , E > ( data ) { return { __kind : ResultKind . Ok , data , } ; } /**
 * Generates an Err Result<T, E>
 */ export function Err < T , E > ( data ) { return { __kind : ResultKind . Err , data , } ; } /**
 * Helps to determine if a result is Ok
 */ export function isOk < T , E > ( result ) { return result . __kind === ResultKind . Ok ; } /**
 * Helps to determine if a result is Err
 */ export function isErr < T , E > ( result ) { return result . __kind === ResultKind . Err ; }