We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript 里面的 Promise 对应 Haskell 里的 Monad,把操作封装在 Promise/Monad 里。
async function do(){ let a = await JobOne(); let b = await JobTwo(); return c; }
do' = do a <- job_one b <- job_two return c
只不过没有haskell那些类型约束=-=
The text was updated successfully, but these errors were encountered:
JobOne().then(a => JobTwo().then(b => c))
job_one >>= (\a -> job_two >>= (\b -> c))
= = (PS 你博客上的多说有问题了
Sorry, something went wrong.
多说的问题有点头疼。。最近在考虑不用了。。
No branches or pull requests
Javascript 里面的 Promise 对应 Haskell 里的 Monad,把操作封装在 Promise/Monad 里。
只不过没有haskell那些类型约束=-=
The text was updated successfully, but these errors were encountered: