问题标签 [monadplus]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
716 浏览

haskell - 如何在 MonadPlus/Alternative 中组合然后分支

我最近写

这似乎很尴尬。我知道protolude(和其他一些包)定义

但即便如此,这一切都感觉有点手动。有没有一些我没见过的很好的模式来收紧它?