If you want to change selection, open document below and click on "Move attachment"
Scala Currying Functions ith multiple parameter lists, as follows:
def strcat(s1: String)(s2: String) = s1 + s2
Alternatively, you can also use the following syntax to define a curried function:
def strcat(s1: String) = (s2: String) => s1 + s2
Following is the <span>syntax to call a curried function:
strcat("foo")("bar")
You can define more than two parameters on a curried function based on your requirement. Let us take a complete example to show currying concept:
object Test {
def main(args: Array[St
Summary
status
not read
reprioritisations
last reprioritisation on
suggested re-reading day
started reading on
finished reading on
Details
Discussion
Do you want to join discussion? Click here to log in or create user.