3 ms·
:) See also this question: http://stackoverflow.com/questions/8303817/nine-ways-to-define-a-method-in-scala http://stackoverflow.com/questions/8303817/nine-way
by eranation 13y ago
:)
See also this question: http://stackoverflow.com/questions/8303817/nine-ways-to-define-a-method-in-scala http://stackoverflow.com/questions/8303817/nine-ways-to-defi...
It can go quite crazy on function definition styles:
val add:(Int,Int)=>Int = _ + _
(from http://scalatutorials.com/tour/12_tour_of_scala_anonymous_functions_2.html http://scalatutorials.com/tour/12_tour_of_scala_anonymous_fu...)