I have checked signature of foldl function and this is the result:
> :t foldl foldl :: Foldable t => (b -> a -> b) -> b -> t a -> b I am confused about this part t a ->b what does this part mean?
Is my guess correct that it means that 3rd argument of foldl function is a Foldable data structure which contains elements of type a?
没有评论:
发表评论