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.
我知道与 Haskell 的 foldl 等效的 python reduce,但我找不到与 Haskell 的 foldi/foldt Link_to_haskell_fold_examples类似的东西
foldi 和 foldt 不是标准的 Haskell 函数。它们只是在您链接的页面上定义的两个功能。当然,它们也可以在 Python 中实现。