DEV Community

Discussion on: สร้าง reduce function ด้วย recursive function

 
iporsut profile image
Weerasak Chongnguluam

ใช่ f จะเป็น function ที่รับ 2 ค่า เนี่ย type ของ foldl ใน Haskell

foldl :: Foldable t => (b -> a -> b) -> b -> t a -> b