Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public static fromNullable(fst: ADTNullable, snd: ADTNullable<s>): Maybe> {
return fst !== null && fst !== undefined && snd !== null && snd !== undefined
? Just(Tuple(fst, snd))
: Nothing;
}
</s>
Just: s => Just(Tuple(f, s)),
Nothing: () => Nothing,