Giter Club home page Giter Club logo

fp-ts-cheatsheet's People

Contributors

alexgeb avatar danitrap avatar invfo avatar jdaison avatar julienfouilhe avatar laurerc avatar mohammadalikassem avatar thierrycols avatar varunpvp avatar vinassefranche avatar zeckson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fp-ts-cheatsheet's Issues

Rework fp-ts-cheatsheet

  • Simplify examples
  • Move documentation to a separate file
  • Fix table of contents
  • Do-notation
  • Link to more documentation
  • map / chain
  • sequence / traverse

[suggestion] Provide link to fp-ts guide on do notation

First of all, I would like to thank you for posting this cheat sheet! It's been really useful for me as a reference.

What I have noticed, is that the guide does not give much info on the Do Notation. It is only briefly shown without much explanation in the last paragraph: https://github.com/inato/fp-ts-cheatsheet#-call-in-parallel

I think that it would be useful to have more details on the Do Notation, and this could be easily achieved by putting there a link to this page: https://gcanti.github.io/fp-ts/guides/do-notation.html

What do you think?

Get Value from a IOEither example

Hey!

If I use getOrElse on IOEither I have to provide IO type value as a Left result, cannot be just null.

What I do now, I convert IOEither to TaskEither with fromIOEither function and then just run and await for TaskEither.
But that makes the whole pipe async. Any other way to get a value from IOEither without async?

Missing "(" on fold example

It appears that the fold example has a missing closing parenthesis:

const doubleOrZero = fold(
    (eitherError: string) => {
      console.log(`The error was ${eitherError}`; //missing closing parenthesis
      return 0;
    }, 
    (value: RawStudentRowValues) =>value, // on right branch
  );

Option.Some<A> => A

Is there a more concise way to go from Array<Option.Some<A>> => Array<A> than: Array.map(({ value }) => value?

I think traverse is data last

traverse takes a first argument which is the datastructure that will be returned by the transformation function. And then two arguments, the first one being the data that will be transformed, and then the transformation function.

I may be wrong, but I think that traverse takes the data as the very last argument

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.