我在Haskell中有一些使用模式匹配的代码.但是,我认为我可以使用折叠和过滤器.对我来说,这将更具可读性,但我想知道它在复杂性方面有任何优势.
haskell pattern-matching fold higher-order-functions
fold ×1
haskell ×1
higher-order-functions ×1
pattern-matching ×1