Recently I saw JS-like syntax of anonymous functio...
# random
m
Recently I saw JS-like syntax of anonymous functions:
Copy code
val func = fun(a: Int): Int { return 10 * a }
Now I wonder: ordinary member or top-level function can be described as `fun`; anonymous function, the implementation of functional type, may be described either as lambda-expression or as `fun`*. Is there any way to describe a member-function as lambda-expression, for consistency? * actually, also as
class
or reference (
::
), but it’s not what I’m talking about