foldr for squareOn - Haskell

前端 未结 0 1379

In my lecture, we had to define the function in figure 1 with foldr. The answer was

 squareOn :: (Eq a, Num a) => [a] -> a -> a        
 squareOn = foldr         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题