I have a function:
sigma(x: Int, y: Int, z: Int, a: Int)(f: (Int, Int, Int, Int) => Double): Double
I need to set it as a parameter of another function:
bigPi(x: Int, y: Int, z: Int, a: Int)('Here should be sigma'):Double
How to define a type of sigma correctly and use it as an argument of bigPi?