检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:袁晓月[1]
机构地区:[1]江西省科学院应用物理研究所,南昌330029
出 处:《江西科学》2014年第4期539-542,共4页Jiangxi Science
摘 要:范畴论中的单子是包含一个函子和2个自然变换的三元组,而函数式F#语言中的单子则是由包含构造子和return操作和bind操作的三元组。针对2种单子定义不一致的问题,首先给出了范畴单子的定义和性质。在此基础上,通过引入(_)*运算符,定义了Kleisli范畴。由此定义了函数语言F#单子。在此基础上给出了F#单子满足的性质与范畴单子性质的对应关系。最后给出了F#单子常见的5种编程情形。A monad of category theory is a triple,which has one functor and two natural transforms, as well as a monad of F# is also a triple, which has one constructor that includes two operator naming return function and bind function. The paper give a mathematical description to cover the gap between the two definitions. The Kleisli category was defined by the operator (_) * after the definition of category theory and its characters. Then the monad of F# and the correspondence of the characters between monad of category and F# was given. Finally, the five scenes of monad of F# were given.
分 类 号:TP301.2[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.145