-, where, :
val a = (f1(12) * f2(100)) where {
def f1(x : Int) = x + 1
def f2(x : Int) = x + 2
}
. , f1 f2 . , , typecheck . , , - , !
, , ( ) - - , , !
: , . github. , , :
val result = where ( f1(1) * f2(2), {
def f1(x : Int) = x + 1
def f2(x : Int) = x + 2
})
, infix Scala - , - (f1 (1) * f2 (2)), . , , , . , !