Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Viktoras25
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
Viktoras25
12y ago
Son: “Well. Hm. If the function is the (+), then you first apply that to the 1. So…..you have something like (1 +)? And now you apply that to the 2? And then you get the final answer?” Seriously? He grabbed the idea just like this? Am I tha
2.
▲
by
Viktoras25
12y ago
Finally I found out the correct version: foldr (+) 0 [1,2,3] 1. + contains only special characters and must be used either as infix function (1 + 2) or be enclosed in brackets 2. You need an initial value for the accumulator. You are reduci