p

Top-level functions summary

Int
foo()

See that inline code here

Unit
sample()

Top-level functions

foo

fun foo(): Int

See that inline code here

Some full code-block


    println(foo()) // Prints 42
    println(foo() - 10) // Prints 32

Some indented code-block fun ref() = foo() val a = 2



println(foo()) // Answer unlimate question of all
println(foo() * 2) // 84!

sample

fun sample(): Unit