val userPostsEither = fetchUserData(123).flatMap { user -> fetchUserPosts(user)}JavaScript中可以使用库如fp-ts 实现类似功能:import * as E from 'fp-ts/Either'import { pipe } from 'fp-ts/function'const divide = (a, b) =>
fp-ts 的作者 Giulio Canti 对此也有他的尝试——hyper-ts[3]。
TypeScript 函数式编程 一些有关的项目 https://github.com/gcanti/fp-ts https://github.com/remeda/remeda ORM prisma
and Modern Intern 哈耶克 鉴权之路 Oauth2 MD5用法和解析 Scala Monad Transformer Type system of Typescript Types in FP-TS