摘要: 近来想于函数式编程中寻找类似与双向链表的数据结构, 结果找到了Zipper. Zipper中文为拉链, 泛指一类常在函数式编程中使用的聚合数据结构, 其加强了原有的数据结构, 使得能够遍历或更新原有数据结构的任意部分. zipper的关键思想是将目前需要处理的部分和不需要处理的部分分开, 同时保存目 阅读全文
posted @ 2021-03-30 14:58 Christophe1997 阅读(219) 评论(0) 推荐(0) 编辑
摘要: Value Restriction是什么? Value restriction是用于控制类型推断能否对值声明进行多态泛化的规则(MLton原文:“The value restriction is a rule that governs when type inference is allowed t 阅读全文
posted @ 2021-03-30 14:58 Christophe1997 阅读(284) 评论(0) 推荐(0) 编辑