Pinned Loading
-
Road to monad: apply
Road to monad: apply 1import { Option, some, none, option } from "fp-ts/lib/Option";
2import { liftA4 } from 'fp-ts/lib/Apply';
3import { Function1 } from 'fp-ts/lib/function';
45// Task: find the total age of two users
-
Road to monad: functor
Road to monad: functor 1import { Function1 } from 'fp-ts/lib/function';
2import { Option, none, some } from 'fp-ts/lib/Option';
34// T -> T
5const identity = <T>(v: T): T => v;
-
Road to monad: final
Road to monad: final 1import { some, Option, none, getSetoid, option } from 'fp-ts/lib/Option';
2import { setoidNumber } from 'fp-ts/lib/Setoid';
3import { liftA2 } from 'fp-ts/lib/Apply';
45const isEquals = (x: Option<number>, y: Option<number>) => getSetoid(setoidNumber).equals(x, y);
-
Road to monad: applicative and chain...
Road to monad: applicative and chain (+setoid) 1import { Option, some, none, fromNullable, getSetoid as getSetoidOpt } from 'fp-ts/lib/Option';
2import { success, getSetoid as getSetoidRD } from '@devexperts/remote-data-ts';
3import { of, Observable, combineLatest } from 'rxjs';
4import { setoidNumber, setoidString, getRecordSetoid } from 'fp-ts/lib/Setoid';
5import { Function1 } from 'fp-ts/lib/function';
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.