let anything:JavaScript的Monadic语法。 这可能更像是一个互动文章库 源码
它允许您通过为各种monad-y值创建适当的上下文来为它们创建monadic语法,这在很大程度上受到了的启发,而名称则受启发 安装 yarn add @fakenickels/let-anything 快速使用 显示异步/等待演示 import { letAnything } from "@fakenickels/let-anything" ; // define a context, in this case we are creating our own async-await! const letPromise = letAnything < Promise>> ( { let_ : ( value , continuation ) => value . then ( continuation ) } ) ; letPromise ( function * ( )
下载地址
用户评论