【文件属性】:
文件名称:tryjs:js 的另一个 Try monad 实现
文件大小:834KB
文件格式:ZIP
更新时间:2021-06-30 07:45:17
JavaScript
尝试
为 javascript 尝试 monad 实现
试试:
var tryOfFoo = Try . Try ( )
. success ( true )
. map ( function ( isFoo ) {
if ( isFoo ) {
return "foo"
}
throw new Error ( "is not foo" )
} ) ;
【文件预览】:
tryjs-master
----src()
--------test()
--------main()
----assembly()
--------bin.xml(1KB)
----LICENSE(1KB)
----README.md(262B)
----pom.xml(5KB)
----.gitignore(1KB)
----bin()
--------try-0.1.0.tar.gz(261KB)
--------try-0.1.0.zip(264KB)