Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在实现的搜索算法(一个简单的偏序规划器)在每次调用时只有几个选择。理想情况下,我希望它回溯可能性并返回第一个找到的解决方案。
看一下 list ( []) monad 实例。它通常用于非确定性。
[]