Skip to content
View morozovamv's full-sized avatar
🤘
🤘

Organizations

@devex-web-frontend

Block or report morozovamv

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Road to monad: apply Road to monad: apply
    1
    import { Option, some, none, option } from "fp-ts/lib/Option";
    2
    import { liftA4 } from 'fp-ts/lib/Apply';
    3
    import { Function1 } from 'fp-ts/lib/function';
    4
    
                  
    5
    // Task: find the total age of two users
  2. Road to monad: functor Road to monad: functor
    1
    import { Function1 } from 'fp-ts/lib/function';
    2
    import { Option, none, some } from 'fp-ts/lib/Option';
    3
    
                  
    4
    // T -> T
    5
    const identity = <T>(v: T): T => v;
  3. Road to monad: final Road to monad: final
    1
    import { some, Option, none, getSetoid, option } from 'fp-ts/lib/Option';
    2
    import { setoidNumber } from 'fp-ts/lib/Setoid';
    3
    import { liftA2 } from 'fp-ts/lib/Apply';
    4
    
                  
    5
    const isEquals = (x: Option<number>, y: Option<number>) => getSetoid(setoidNumber).equals(x, y);
  4. Road to monad: applicative and chain... Road to monad: applicative and chain (+setoid)
    1
    import { Option, some, none, fromNullable, getSetoid as getSetoidOpt } from 'fp-ts/lib/Option';
    2
    import { success, getSetoid as getSetoidRD } from '@devexperts/remote-data-ts';
    3
    import { of, Observable, combineLatest } from 'rxjs';
    4
    import { setoidNumber, setoidString, getRecordSetoid } from 'fp-ts/lib/Setoid';
    5
    import { Function1 } from 'fp-ts/lib/function';
  5. devexperts/dx-platform devexperts/dx-platform Public

    TypeScript 33 24