I came from What is the formal difference in Scala between braces and parentheses, and when should they be used? , so still I am not clear understand the scala method call syntax trick. I think the lcn's answer in the link is clear but what does these mean:
val r = List(1, 2, 3).foldLeft(0) _+_ //r: String => String = $Lambda$1642/1200068083@562c1af9
val l = r{"hello"} //l: String = $Lambda$1643/1458648440@23ae6386hello
why
r
is a function? and call it return another functionl
and can not calll
?are there some official doc for method call in () and {}?