📜  无点风格haskell代码示例

📅  最后修改于: 2022-03-11 14:53:34.985000             🧑  作者: Mango

代码示例1
--Pointfree Style
--It is very common for functional programmers to write functions as a composition of other functions, 
never mentioning the actual arguments they will be applied to. For example, compare:

sum = foldr (+) 0

--Not pointfree style
sum' xs = foldr (+) 0 xs