functional programming - scala method vs function partial application -
By this, I would like to understand the difference between:
val aCurriedfunc: Int = & Gt; String = & gt; String = x = & gt; Y = & gt; Def a Crownfed Method (x: int) (y: string) = x + "+" + y + + + Y is a Christian method (2) _ Why is it really that the first case "_" is not required, but the second case is required Yes a one type of function And the other is a way which is not a real thing in Saskala that I understand. However this difference only leads me to the second question.
- Is there anything with the expansion of EAA?
If Yes
- How to Partially Differ Implemented Work and Eta Extension?
_ in curse method (2) _ ADA-extension asks for the compiler. The result is a function, there is no way (or need) to differentiate between the partially implemented function and the results of the Eta expansion. In one method, different parameter lists such as curriedMethod are actually implemented as a single method, in which all the parameters are combined in any way the method is to create a function , The partial expansion is partially implemented by giving the closure created by the ETA-extension on partially applied parameters.
Comments
Post a Comment