How to use the purify-ts/Tuple.Tuple function in purify-ts

To help you get started, we’ve selected a few purify-ts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SamHH / bukubrow-webext / src / modules / adt.ts View on Github external
public static fromNullable(fst: ADTNullable, snd: ADTNullable<s>): Maybe&gt; {
		return fst !== null &amp;&amp; fst !== undefined &amp;&amp; snd !== null &amp;&amp; snd !== undefined
			? Just(Tuple(fst, snd))
			: Nothing;
	}
</s>
github SamHH / bukubrow-webext / src / modules / adt.ts View on Github external
				Just: s => Just(Tuple(f, s)),
				Nothing: () => Nothing,

purify-ts

Functional programming standard library for TypeScript

ISC
Latest version published 4 months ago

Package Health Score

77 / 100
Full package analysis