Documentations miss missing information about functions


#1

Its not that big of a deal, but as someone coming from a Java/heavy oop backgroud it took me a while to figure that I can do this:

val function = fun()
{

}

Can it be explicitly shown in the documentation? After knowing that functions are primary members its not hard to figure, but it would be helpfull to aid this leap of logic.


#2

These are called anonymous functions.


#3

Yup, found it. Thanks