2013-10-10 149 views
4

運算符<>在以下代碼中的含義是什麼?<>運算符是什麼意思

class Functor f => Foldable f where 
    fold :: Monoid m =>    f m -> m 
    foldMap :: Monoid m => (a -> m) -> f a -> m 

instance Foldable [] where 
    fold = foldr (<>) mempty 

有誰能告訴我嗎?

回答