Haskell语言学习笔记(16)Alternative

Alternative class Applicative f => Alternative f where empty :: f a (<|>) :: f a -> f a -> f aAlternative(选择)是个类型类。 what does Haskell's <|> operator do? Alternative 的法则 empty <|> u = u u <|>
相关文章
相关标签/搜索