Use another module

Every .mn file is a module. use greeting loads greeting.mn, and greeting.message selects its public function. Declarations are private until you add pub.

Switch between the two file tabs, edit either file, then run them as one request. The two files you see are the whole program. The entry file anchors module paths, so sibling modules use their file name.

use greeting

fn main() {
  println(greeting.message("Ada"))
}
Output & diagnostics
Expected:
Hello, Ada
Ctrl/⌘+Enter runs the current lesson.