Ziqi Liu Ziqi Liu - 1 year ago 118
Scala Question

how to declare variable in scala lambda expression

in the method reduceByKey(), I was required to pass a function like this:


and my code is


however my IDE show strange error. Is there anything wrong with my code?

Answer Source

How does


look in your IDE?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download