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 scanl/等效的 F# scanr?这些函数执行折叠,但它们以列表的形式报告所有中间累加器状态。
scanl
scanr
是的,它们是List.scan和List.scanBack。
List.scan
List.scanBack