Creative uses of monads

后端 未结 8 783
再見小時候
再見小時候 2020-12-07 07:39

I\'m looking for creative uses of monads to learn from. I\'ve read somewhere that monads have been used for example in AI, but being a monad newbie, I fail to see how.

8条回答
  •  时光取名叫无心
    2020-12-07 08:13

    There's also LogicT (backtracking monad transformer with fair operations and pruning).

    It has good value to AI Search algorithms because of its constructs for fair disjunctions, for example, easily enabling computations that succeed an infinite number of times to be combined (interleaved).

    It's usage is described in the ICFP'05 paper Backtracking, Interleaving, and Terminating Monad Transformers

提交回复
热议问题