据推测,他们完全一样,concatMap f xs并且concat $ map f xs.为什么我会选择一个而不是另一个?
concatMap f xs
concat $ map f xs
我想这可能是一个优化.如果是这样,GHC 7.8仍然如此吗?
haskell
haskell ×1