Haskell has the opportunity to write functions in the so-called pointless (pointfree) style:sum :: (Num a) => [a] -> a
sum = foldl (+) 0
However, we do not point out the rationale of the function (the point of application, the term is pointless), but we must do so on the right and on the left of the sign. = in the definition of the function. In this example, the standard library omits a summarised list, a complete definition would look like that.sum :: (Num a) => [a] -> a
sum xs = foldl (+) 0 xs
In your example, an auxiliary function is defined in an inaccurate manner fgHlpYou could've identified.fgHlp maxS ys = filter (\(q,s,d) -> s == maxS) ys
Here. filter accepts the correct number of arguments - the predicament and the list, but in Haskell, the use of the function is less than it is supposed to be.With regard to the first question, technically write to the right in the definition filterGr expression fgHlp s If we didn't have to get it. s from the head of the list in the left part of that definition. I mean, when you write it off...filterGr = fgHlp s
We'd face a problem, what's going on here? s?