【发布时间】:2016-03-03 11:07:53
【问题描述】:
我正在使用funcool/cats,在幺半群后面加上以下代码:
(m/mappend (maybe/just [1 2 3])
nil
(maybe/just [4 5 6])
(maybe/nothing)) ;;=> #<Just [1 2 3 4 5 6]>
将nil 视为可能/无的理由是什么?
注意:版本为[funcool/cats "1.2.1"]
【问题讨论】:
标签: clojure category-theory monoids