Hello, world!

kedr/println "Hello, world!"

Function println writes Hello, world! to the console. Argument can be of any type, to_string method is called to get the string representation.

The kedr module contains builtin types and functions.

import kedr/println println "Hello, world!"

Import of an element spans across multiple files and lasts until the end of a module.

def greet (name : String) = println "Hello, $name!"

Function is defined with the def keyword. Content of a function is indented by four spaces.

Dollar sign inserts a value of the following expression into a string.