Keep writing Kalm
You built a CLI that reads a file, counts lines and whitespace-separated words, handles errors, and tests its core behavior.
Your final project contains these files:
Text
src/main/kalm/stats/
App.kalm
Counting.kalm
Statistics.kalm
Summary.kalm
Input.kalm
src/test/kalm/stats/
StatisticsTests.kalmTry a small extension
Add a character count to Statistics and update summarize and its tests. Keep I/O separate from counting so your tests can use small in-memory inputs.
Pick your next topic
- Read the Handbook for deeper explanations.
- Try contracts and forwarding.
- Explore async functions and resource cleanup.
- Add Maven or Gradle to your project.