DEV Community

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

Collapse
 
iporsut profile image
Weerasak Chongnguluam

หมายถึง f ที่โยนให้ reduce ใช่มั้ย

Collapse
 
wingyplus profile image
Thanabodee Charoenpiriyakij

ใช่ๆ

Thread Thread
 
iporsut profile image
Weerasak Chongnguluam

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

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