We say a type m is an instance of the Functor typeclass if we define a ... instance Functor Tree where fmap f Leaf = Leaf fmap f (Bin i l r) = Bin (f i) ...
確定! 回上一頁