Documentations miss missing information about functions

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.

These are called anonymous functions.

Yup, found it. Thanks