Start with a word counter. Add file input, handle errors, and finish with tests. Eight small steps, one useful program.Start with a word counter in a single script. Add file input and handle errors, then explore project mode for reusable APIs and native tests.
Follow the learning pathA calmer way
to write for the JVM.
Friendly JVM syntax. Full access to Java libraries.
App.kalm
pub fun greeting(name: Text) -> Text:
return @"Hello, $name!"
pub fun main() -> Unit:
sayLine(greeting(""))
App.kalm
pub fun greeting(name: Text) -> Text {
return @"Hello, $name!"
}
pub fun main() -> Unit {
sayLine(greeting(""))
}
App.kalms
fun greeting(name: Text) -> Text:
return @"Hello, $name!"
sayLine(greeting(""))
App.kalms
fun greeting(name: Text) -> Text {
return @"Hello, $name!"
}
sayLine(greeting(""))Output